:root {
  color: #10231c;
  background: #07110f;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1.1fr);
}

.login-visual {
  position: relative;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 70px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: white;
  background:
    radial-gradient(circle at 18% 68%, rgba(133, 219, 73, 0.2), transparent 24%),
    radial-gradient(circle at 78% 20%, rgba(40, 131, 108, 0.28), transparent 29%),
    linear-gradient(145deg, #07110f 0%, #09231a 62%, #0d3727 100%);
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.login-visual::before {
  right: -135px;
  bottom: -150px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(141, 220, 79, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(141, 220, 79, 0.025),
    0 0 0 110px rgba(141, 220, 79, 0.02);
}

.login-visual::after {
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent, black 34%, transparent);
}

.login-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: white;
  text-decoration: none;
}

.login-brand svg {
  width: 39px;
  fill: white;
}

.login-brand .brand-accent {
  fill: #8dde4f;
}

.login-brand span {
  display: flex;
  flex-direction: column;
}

.login-brand strong {
  font-size: calc(15px + var(--font-size-delta, 0px));
  letter-spacing: 0.16em;
}

.login-brand small {
  margin-top: 3px;
  color: #8dde4f;
  font-size: calc(8px + var(--font-size-delta, 0px));
  font-weight: 800;
  letter-spacing: 0.28em;
}

.visual-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9adf68;
  font-size: calc(11px + var(--font-size-delta, 0px));
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: #8dde4f;
}

.visual-copy h1 {
  max-width: 620px;
  margin: 23px 0 18px;
  font-size: clamp(42px, 5.1vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.visual-copy p {
  max-width: 470px;
  margin: 0;
  color: #a9bbb4;
  font-size: calc(16px + var(--font-size-delta, 0px));
  line-height: 1.7;
}

.visual-status {
  position: relative;
  z-index: 1;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-status > span {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(141, 222, 79, 0.3);
  border-radius: 50%;
  background: #8dde4f;
  box-shadow: 0 0 16px rgba(141, 222, 79, 0.65);
}

.visual-status p {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.visual-status strong {
  font-size: calc(11px + var(--font-size-delta, 0px));
}

.visual-status small {
  margin-top: 3px;
  color: #7f958c;
  font-size: calc(9px + var(--font-size-delta, 0px));
}

.login-panel {
  min-height: 100vh;
  padding: 42px;
  display: grid;
  place-items: center;
  background: #f4f7f5;
}

.login-card {
  width: min(100%, 430px);
  padding: 42px 44px 34px;
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  background: white;
  box-shadow: 0 24px 70px rgba(10, 33, 24, 0.1);
}

.login-card-heading {
  text-align: center;
}

.security-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #27704e;
  background: #eaf6ee;
}

.security-icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.setup-label {
  color: #4d8b65;
  font-size: calc(9px + var(--font-size-delta, 0px));
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 8px 0 8px;
  font-size: calc(28px + var(--font-size-delta, 0px));
  letter-spacing: -0.035em;
}

.login-card-heading p {
  margin: 0 auto;
  color: #708078;
  font-size: calc(12px + var(--font-size-delta, 0px));
  line-height: 1.55;
}

form {
  margin-top: 30px;
  display: grid;
  gap: 17px;
}

label > span {
  margin-bottom: 7px;
  display: block;
  color: #46574f;
  font-size: calc(10px + var(--font-size-delta, 0px));
  font-weight: 750;
}

.input-wrap {
  position: relative;
}

.input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  color: #8a9992;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
}

.input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 43px;
  border: 1px solid #d8e1dc;
  border-radius: 9px;
  outline: none;
  color: #14251e;
  background: #fbfcfb;
  font-size: calc(13px + var(--font-size-delta, 0px));
  transition: 160ms ease;
}

.input-wrap input:focus {
  border-color: #5ca779;
  background: white;
  box-shadow: 0 0 0 3px rgba(83, 164, 115, 0.12);
}

.input-wrap button {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #829189;
  background: transparent;
  transform: translateY(-50%);
}

.input-wrap button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.form-message {
  padding: 10px 12px;
  border: 1px solid #efceca;
  border-radius: 8px;
  color: #a63e39;
  background: #fff6f5;
  font-size: calc(10px + var(--font-size-delta, 0px));
  line-height: 1.45;
}

.login-submit {
  height: 49px;
  margin-top: 3px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  color: #10200f;
  background: #8dde4f;
  font-size: calc(12px + var(--font-size-delta, 0px));
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(100, 180, 54, 0.24);
}

.login-submit:hover {
  background: #98e95c;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.login-submit svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.login-card footer {
  margin-top: 27px;
  padding-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-top: 1px solid #edf1ef;
  color: #87958e;
  font-size: calc(8px + var(--font-size-delta, 0px));
  line-height: 1.5;
}

.login-card footer svg {
  width: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

.login-theme-toggle {
  position: fixed;
  z-index: 20;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(19, 45, 34, 0.12);
  border-radius: 10px;
  color: #496158;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 25px rgba(8, 28, 19, 0.1);
  backdrop-filter: blur(12px);
}

.login-theme-toggle svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

html[data-theme="dark"] {
  color: #e7efeb;
  background: #07100d;
}

html[data-theme="dark"] .login-panel {
  background: #0b1411;
}

html[data-theme="dark"] .login-card {
  border-color: #2b3b34;
  background: #121d19;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .security-icon {
  color: #82d49c;
  background: #173326;
}

html[data-theme="dark"] .setup-label {
  color: #76c58f;
}

html[data-theme="dark"] .login-card-heading p,
html[data-theme="dark"] .login-card footer {
  color: #91a49a;
}

html[data-theme="dark"] label > span {
  color: #b5c5bd;
}

html[data-theme="dark"] .input-wrap > svg,
html[data-theme="dark"] .input-wrap button {
  color: #74887e;
}

html[data-theme="dark"] .input-wrap input {
  color: #e8f0ec;
  border-color: #30423a;
  background: #0d1713;
}

html[data-theme="dark"] .input-wrap input:focus {
  border-color: #5ca779;
  background: #101c17;
}

html[data-theme="dark"] .form-message {
  color: #f0aaa6;
  border-color: #623532;
  background: #321c1b;
}

html[data-theme="dark"] .login-card footer {
  border-color: #25352e;
}

html[data-theme="dark"] .login-theme-toggle {
  color: #c5d4cd;
  border-color: #31433b;
  background: rgba(18, 29, 25, 0.9);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28);
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 280px;
    padding: 30px;
  }

  .visual-copy {
    margin: 55px 0 35px;
  }

  .visual-copy h1 {
    font-size: calc(42px + var(--font-size-delta, 0px));
  }

  .visual-status {
    display: none;
  }

  .login-panel {
    min-height: auto;
    padding: 28px 18px 45px;
  }
}

@media (max-width: 520px) {
  .login-card {
    padding: 32px 24px 27px;
  }

  .login-visual {
    min-height: 240px;
  }

  .visual-copy p {
    font-size: calc(13px + var(--font-size-delta, 0px));
  }
}
