.login-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: clamp(28px, 6vw, 96px);
  align-items: stretch;
  overflow: hidden;
  padding: clamp(22px, 4vw, 56px);
  background: oklch(18% 0.014 96);
}

.login-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.login-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, oklch(16% 0.018 96 / 74%) 0%, oklch(18% 0.017 96 / 46%) 42%, oklch(96% 0.008 84 / 72%) 100%),
    radial-gradient(circle at 26% 22%, oklch(72% 0.08 72 / 24%), transparent 28rem),
    radial-gradient(circle at 84% 10%, oklch(77% 0.055 186 / 28%), transparent 24rem);
}

.brand-stage,
.login-panel {
  position: relative;
  z-index: 1;
}

.brand-stage {
  display: grid;
  min-height: calc(100vh - clamp(44px, 8vw, 112px));
  grid-template-rows: auto 1fr auto;
  color: oklch(96% 0.01 86);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: oklch(97% 0.008 84);
  font-weight: 740;
  letter-spacing: 0;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 10px;
  border: 1px solid oklch(96% 0.012 82 / 36%);
  border-radius: 14px;
  background: oklch(26% 0.018 96 / 68%);
  box-shadow: 0 16px 44px oklch(8% 0.012 96 / 38%);
}

.brand__bar {
  display: block;
  border-radius: 999px;
  background: oklch(68% 0.105 72);
}

.brand__bar--one {
  height: 10px;
}

.brand__bar--two {
  height: 17px;
  background: oklch(70% 0.062 186);
}

.brand__bar--three {
  height: 23px;
  background: oklch(84% 0.042 186);
}

.brand__text {
  font-size: 1.08rem;
}

.stage-copy {
  align-self: center;
  max-width: 680px;
  padding-bottom: 6vh;
}

.eyebrow {
  margin: 0 0 16px;
  color: oklch(83% 0.075 72);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stage-copy__lead {
  max-width: 12.6em;
  margin: 0;
  color: oklch(96% 0.01 86);
  font-size: clamp(2.6rem, 6.8vw, 6.4rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
}

.signal-strip {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid oklch(96% 0.012 82 / 22%);
  border-radius: 18px;
  background: oklch(96% 0.012 82 / 18%);
  box-shadow: 0 20px 60px oklch(8% 0.012 96 / 24%);
}

.signal-strip div {
  min-width: 0;
  padding: 18px;
  background: oklch(18% 0.014 96 / 52%);
}

.signal-strip dt {
  color: oklch(90% 0.012 84 / 72%);
  font-size: 0.74rem;
  font-weight: 680;
}

.signal-strip dd {
  margin: 7px 0 0;
  color: oklch(98% 0.006 82);
  font-size: 1.18rem;
  font-weight: 760;
  letter-spacing: 0;
}

.login-panel {
  display: flex;
  min-height: calc(100vh - clamp(44px, 8vw, 112px));
  align-items: center;
  justify-content: flex-end;
}

.login-panel__surface {
  width: min(100%, 456px);
  border: 1px solid oklch(78% 0.015 86 / 64%);
  border-radius: 28px;
  background:
    linear-gradient(180deg, oklch(98.6% 0.006 82), oklch(94.6% 0.01 82));
  box-shadow:
    0 32px 90px oklch(10% 0.014 96 / 34%),
    inset 0 1px 0 oklch(100% 0 0 / 54%);
  padding: clamp(26px, 4vw, 42px);
}

.login-copy h1 {
  max-width: 10em;
  margin: 0;
  color: var(--ink-strong);
  font-size: 2.18rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.04;
  text-wrap: balance;
}

.login-copy p:not(.eyebrow) {
  max-width: 30rem;
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.login-form {
  margin-top: 34px;
}

.form-field + .form-field {
  margin-top: 16px;
}

.form-field label,
.field-label-row {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 690;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.field-label-row a {
  color: var(--accent-strong);
  font-size: 0.83rem;
  font-weight: 700;
  transition: color 160ms var(--ease-out);
}

.field-label-row a:hover {
  color: var(--accent);
}

.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"] {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  border: 1px solid oklch(80% 0.013 82);
  border-radius: 11px;
  background: oklch(99% 0.004 82);
  color: var(--ink-strong);
  font-size: 1rem;
  letter-spacing: 0;
  padding: 0 16px;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.form-field input::placeholder {
  color: oklch(63% 0.012 84);
}

.form-field input:hover {
  border-color: oklch(70% 0.018 82);
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px oklch(78% 0.07 186 / 24%);
  outline: 0;
}

.form-field[data-state="error"] input {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field-message {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 0.84rem;
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 78px;
}

.password-toggle {
  position: absolute;
  top: 16px;
  right: 10px;
  min-width: 56px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 740;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.password-toggle:hover {
  background: var(--accent-soft);
}

.password-toggle:active,
.login-button:active {
  transform: scale(0.97);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 560;
}

.checkbox-control input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-strong);
}

.login-button {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, oklch(48% 0.078 186), oklch(35% 0.082 188));
  color: oklch(98% 0.006 186);
  font-size: 1rem;
  font-weight: 770;
  box-shadow: 0 18px 34px oklch(33% 0.07 186 / 30%);
  transition:
    box-shadow 180ms var(--ease-out),
    filter 180ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.login-button:hover {
  box-shadow: 0 20px 42px oklch(33% 0.07 186 / 38%);
  filter: saturate(1.04);
}

.login-button[disabled] {
  cursor: progress;
  filter: saturate(0.82);
  opacity: 0.84;
}

.login-button__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid oklch(98% 0.006 186 / 44%);
  border-top-color: oklch(98% 0.006 186);
  border-radius: 50%;
  animation: spin 780ms linear infinite;
}

.login-form[data-loading="true"] .login-button__spinner {
  display: block;
}

.login-form[data-loading="true"] .login-button__text {
  filter: blur(0.7px);
}

.security-note {
  max-width: 31rem;
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 0.83rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1040px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  .login-atmosphere {
    background:
      linear-gradient(180deg, oklch(16% 0.018 96 / 68%) 0%, oklch(18% 0.017 96 / 46%) 44%, oklch(96% 0.008 84 / 78%) 100%),
      radial-gradient(circle at 26% 14%, oklch(72% 0.08 72 / 24%), transparent 22rem);
  }

  .brand-stage,
  .login-panel {
    min-height: auto;
  }

  .brand-stage {
    gap: 56px;
  }

  .stage-copy {
    padding: 34px 0 0;
  }

  .stage-copy__lead {
    max-width: 13em;
    font-size: clamp(2.28rem, 9vw, 4.8rem);
  }

  .login-panel {
    justify-content: center;
  }

  .login-panel__surface {
    width: min(100%, 560px);
  }

  .signal-strip {
    width: min(100%, 620px);
  }
}

@media (max-width: 620px) {
  .login-shell {
    padding: 18px;
  }

  .brand-stage {
    gap: 38px;
  }

  .stage-copy {
    padding-top: 20px;
  }

  .stage-copy__lead {
    font-size: 2.18rem;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    padding: 14px 16px;
  }

  .login-panel__surface {
    border-radius: 22px;
    padding: 24px 18px;
  }

  .login-copy h1 {
    font-size: 1.74rem;
  }

  .field-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .form-field input[type="email"],
  .form-field input[type="password"],
  .form-field input[type="text"],
  .login-button {
    min-height: 52px;
  }

  .password-toggle {
    top: 15px;
    height: 34px;
  }
}
