.auth-body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 173, 239, .16), transparent 24rem),
    radial-gradient(circle at 92% 88%, rgba(0, 109, 156, .12), transparent 28rem),
    linear-gradient(145deg, #edf7fb 0%, #f8fbfc 52%, #eaf4f8 100%);
}

.auth-body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: .34;
  background-image:
    linear-gradient(rgba(0, 109, 156, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 109, 156, .045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
}

.auth-shell {
  width: min(1240px, 100%);
  min-height: min(740px, calc(100svh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, .92fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 30px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 80px rgba(7, 87, 121, .2), 0 8px 24px rgba(22, 58, 74, .08);
  animation: auth-shell-enter 360ms ease-out both;
}

.auth-hero {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 4.5vw, 58px);
  color: var(--text-on-dark, #fff);
  background:
    linear-gradient(145deg, rgba(7, 87, 121, .98), rgba(0, 109, 156, .94)),
    var(--brand-900, #075779);
}

.auth-hero::before {
  position: absolute;
  top: -165px;
  right: -145px;
  z-index: -1;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 46px rgba(255, 255, 255, .035),
    0 0 0 92px rgba(255, 255, 255, .025);
}

.auth-hero::after {
  position: absolute;
  right: -80px;
  bottom: -150px;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 42% 58% 65% 35%;
  content: "";
  transform: rotate(18deg);
  background: linear-gradient(145deg, rgba(53, 189, 235, .26), rgba(255, 255, 255, .035));
}

.auth-hero-content {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.auth-brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 12px 30px rgba(0, 42, 66, .18);
  backdrop-filter: blur(10px);
}

.auth-brand-mark svg {
  width: 28px;
  height: 28px;
}

.auth-brand-copy {
  min-width: 0;
}

.auth-brand-copy strong,
.auth-brand-copy small {
  display: block;
}

.auth-brand-copy strong {
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.auth-brand-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
}

.auth-hero-copy {
  max-width: 560px;
  margin-top: clamp(46px, 8vh, 82px);
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aee9ff;
  font-size: .74rem;
  font-weight: bold;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-eyebrow::before {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: var(--brand-400, #35bdeb);
}

.auth-hero-copy h1 {
  max-width: 580px;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(2.3rem, 4vw, 3.75rem);
  font-weight: bold;
  line-height: 1.07;
  letter-spacing: -.045em;
}

.auth-hero-copy p {
  max-width: 550px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 1rem;
  line-height: 1.72;
}

.auth-feature-list {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.auth-feature-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.auth-feature-list li:hover {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

.auth-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 13px;
  color: #bcecff;
  background: rgba(255, 255, 255, .09);
}

.auth-feature-icon svg {
  width: 21px;
  height: 21px;
}

.auth-feature-list strong,
.auth-feature-list small {
  display: block;
}

.auth-workspace-card {
  max-width: 580px;
  margin-top: 32px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 19px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 18px 36px rgba(0, 42, 66, .13);
  backdrop-filter: blur(12px);
}

.auth-workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 6px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.auth-workspace-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: .77rem;
  font-weight: bold;
  letter-spacing: .02em;
}

.auth-workspace-heading i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #76ddff;
  box-shadow: 0 0 0 4px rgba(118, 221, 255, .13);
}

.auth-workspace-heading small {
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
}

.auth-feature-list strong {
  color: #fff;
  font-size: .9rem;
}

.auth-feature-list small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .66);
  font-size: .77rem;
  line-height: 1.45;
}

.auth-hero-security {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.auth-hero-security > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #bcecff;
  background: rgba(255, 255, 255, .09);
}

.auth-hero-security svg {
  width: 20px;
  height: 20px;
}

.auth-hero-security p {
  margin: 0;
}

.auth-hero-security strong,
.auth-hero-security small {
  display: block;
}

.auth-hero-security strong {
  color: #fff;
  font-size: .82rem;
}

.auth-hero-security small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .62);
  font-size: .74rem;
  line-height: 1.4;
}

.auth-panel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 173, 239, .09), transparent 18rem),
    rgba(255, 255, 255, .98);
}

.auth-panel::before {
  position: absolute;
  top: 34px;
  right: 34px;
  z-index: -1;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  content: "";
  opacity: .26;
  background:
    linear-gradient(90deg, transparent 37%, var(--brand-200, #c3eafb) 37% 63%, transparent 63%),
    linear-gradient(transparent 37%, var(--brand-200, #c3eafb) 37% 63%, transparent 63%);
}

.auth-panel-inner {
  width: min(570px, 100%);
  margin: auto;
  padding: clamp(38px, 4vw, 58px) 30px 28px;
}

.auth-form-heading {
  margin-bottom: 24px;
  padding-inline: 5px;
}

.auth-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-800, #006d9c);
  font-size: .72rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-form-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success, #18794e);
  box-shadow: 0 0 0 4px var(--success-soft, #e9f7f0);
}

.auth-form-heading h2 {
  margin: 12px 0 8px;
  color: var(--text-primary, #163a4a);
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.auth-form-heading p {
  margin: 0;
  color: var(--text-secondary, #536f7c);
  font-size: .92rem;
  line-height: 1.6;
}

.auth-alert {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin-bottom: 22px;
  padding: 13px 14px;
  border: 1px solid #f2c7ca;
  border-radius: 12px;
  color: var(--danger-deep, #a51f24);
  background: var(--danger-soft, #fff0f1);
}

.auth-form-surface {
  position: relative;
  padding: 25px;
  border: 1px solid var(--border-default, #d8e9f1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(22, 58, 74, .1), inset 0 1px #fff;
}

.auth-form-surface::before {
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  content: "";
  background: linear-gradient(90deg, var(--brand-400, #35bdeb), var(--brand-800, #006d9c));
}

.auth-form-section-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-default, #d8e9f1);
}

.auth-form-section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-200, #c3eafb);
  border-radius: 13px;
  color: var(--brand-900, #075779);
  background: linear-gradient(145deg, #fff, var(--brand-100, #eaf8fe));
  box-shadow: 0 7px 16px rgba(0, 109, 156, .1);
}

.auth-form-section-icon svg {
  width: 21px;
  height: 21px;
}

.auth-form-section-heading strong,
.auth-form-section-heading small {
  display: block;
}

.auth-form-section-heading strong {
  color: var(--text-primary, #163a4a);
  font-size: .94rem;
}

.auth-form-section-heading small {
  margin-top: 2px;
  color: var(--text-muted, #5d7581);
  font-size: .74rem;
  line-height: 1.4;
}

.auth-alert-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--danger, #c62828);
  font-size: .82rem;
  font-weight: bold;
}

.auth-alert strong,
.auth-alert small {
  display: block;
}

.auth-alert strong {
  font-size: .84rem;
}

.auth-alert small {
  margin-top: 2px;
  color: #8e2529;
  font-size: .78rem;
  line-height: 1.45;
}

.auth-alert-info {
  border-color: var(--brand-200, #c3eafb);
  color: var(--brand-900, #075779);
  background: var(--brand-100, #eaf8fe);
}

.auth-alert-info .auth-alert-icon {
  background: var(--brand-800, #006d9c);
}

.auth-alert-info small {
  color: var(--brand-900, #075779);
}

.auth-form {
  display: grid;
  gap: 22px;
}

.auth-field {
  min-width: 0;
}

.auth-field .form-label {
  margin-bottom: 10px;
  color: var(--text-primary, #163a4a);
  font-size: .9rem;
  font-weight: bold;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-field-hint {
  color: var(--text-muted, #5d7581);
  font-size: .72rem;
}

.auth-control-wrap {
  position: relative;
}

.auth-control-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--brand-900, #075779);
  background: var(--brand-100, #eaf8fe);
  transform: translateY(-50%);
  pointer-events: none;
  transition: color 150ms ease;
}

.auth-control-icon svg {
  width: 21px;
  height: 21px;
}

.auth-control.form-control {
  width: 100%;
  min-height: 62px;
  padding: 15px 18px 15px 64px;
  border: 1px solid var(--border-strong, #bdd9e5);
  border-radius: 15px;
  color: var(--text-primary, #163a4a);
  background: var(--surface-secondary, #f7fbfd);
  font-size: 1rem;
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.auth-control.form-control:hover {
  border-color: var(--border-emphasis, #8ec9df);
  background: #fff;
}

.auth-control.form-control:focus {
  border-color: var(--brand-700, #0085ba);
  background: #fff;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(0, 152, 212, .28));
}

.auth-control-wrap:focus-within .auth-control-icon {
  color: #fff;
  background: var(--brand-800, #006d9c);
}

.auth-password-control.form-control {
  padding-right: 106px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 3;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border: 0;
  border-radius: 11px;
  color: var(--brand-900, #075779);
  background: transparent;
  font-size: .8rem;
  font-weight: bold;
  transform: translateY(-50%);
  transition: color 150ms ease, background-color 150ms ease;
}

.auth-password-toggle:hover {
  color: var(--brand-800, #006d9c);
  background: var(--brand-100, #eaf8fe);
}

.auth-password-toggle svg {
  width: 17px;
  height: 17px;
}

.auth-caps-warning {
  margin: 7px 0 0;
  color: var(--warning-deep, #774400);
  font-size: .75rem;
}

.auth-remember-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: -2px 1px 0;
  color: var(--text-primary, #163a4a);
  cursor: pointer;
}

.auth-remember-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand-800, #006d9c);
}

.auth-remember-option strong,
.auth-remember-option small {
  display: block;
}

.auth-remember-option strong {
  font-size: .84rem;
}

.auth-remember-option small {
  margin-top: 2px;
  color: var(--text-muted, #5d7581);
  font-size: .72rem;
  line-height: 1.4;
}

.auth-remember-option:focus-within {
  border-radius: 8px;
  outline: 3px solid rgba(0, 152, 212, .28);
  outline-offset: 4px;
}

.auth-submit.btn {
  width: 100%;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  padding: 12px 18px;
  border: 1px solid var(--brand-800, #006d9c);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-800, #006d9c), var(--brand-900, #075779));
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 11px 24px rgba(0, 109, 156, .2);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.auth-submit.btn:hover:not(:disabled) {
  color: #fff;
  filter: brightness(.96);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 109, 156, .25);
}

.auth-submit.btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit.btn:disabled {
  border-color: var(--brand-800, #006d9c);
  color: rgba(255, 255, 255, .88);
  background: var(--brand-800, #006d9c);
  opacity: .82;
}

.auth-submit-arrow {
  display: inline-flex;
}

.auth-submit-arrow svg {
  width: 19px;
  height: 19px;
}

.auth-submit-spinner {
  width: 17px;
  height: 17px;
  display: none;
  border: 2px solid rgba(255, 255, 255, .38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
}

.auth-submit[aria-busy="true"] .auth-submit-spinner {
  display: inline-block;
}

.auth-submit[aria-busy="true"] .auth-submit-arrow {
  display: none;
}

.auth-security-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 20px 5px 0;
  padding: 13px 14px;
  border: 1px solid var(--border-default, #d8e9f1);
  border-radius: 12px;
  background: var(--surface-secondary, #f7fbfd);
}

.auth-security-note > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--success-deep, #11643f);
  background: var(--success-soft, #e9f7f0);
}

.auth-security-note svg {
  width: 17px;
  height: 17px;
}

.auth-security-note p {
  margin: 0;
}

.auth-security-note strong,
.auth-security-note small {
  display: block;
}

.auth-security-note strong {
  color: var(--text-primary, #163a4a);
  font-size: .78rem;
}

.auth-security-note small {
  margin-top: 2px;
  color: var(--text-muted, #5d7581);
  font-size: .72rem;
  line-height: 1.45;
}

.auth-help {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 18px 24px;
  border-top: 1px solid var(--border-default, #d8e9f1);
  color: var(--text-muted, #5d7581);
  background: var(--surface-secondary, #f7fbfd);
  font-size: .74rem;
  text-align: center;
}

.auth-help strong {
  color: var(--text-secondary, #536f7c);
}

@keyframes auth-shell-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1040px) {
  .auth-shell {
    grid-template-columns: minmax(300px, .78fr) minmax(470px, 1.22fr);
  }

  .auth-hero {
    padding: 34px 30px;
  }

  .auth-hero-copy {
    margin-top: 52px;
  }

  .auth-hero-copy h1 {
    font-size: 2.45rem;
  }

  .auth-feature-list small,
  .auth-workspace-heading small {
    display: none;
  }
}

@media (max-width: 820px) {
  .auth-page {
    place-items: start center;
    padding: 14px;
  }

  .auth-shell {
    min-height: calc(100svh - 28px);
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .auth-hero {
    display: block;
    padding: 24px;
  }

  .auth-hero::before {
    top: -270px;
    right: -190px;
  }

  .auth-hero-copy {
    margin-top: 26px;
  }

  .auth-eyebrow,
  .auth-workspace-card,
  .auth-hero-security {
    display: none;
  }

  .auth-hero-copy h1 {
    margin: 0 0 8px;
    font-size: 1.55rem;
    letter-spacing: -.03em;
  }

  .auth-hero-copy h1 br {
    display: none;
  }

  .auth-hero-copy p {
    font-size: .82rem;
    line-height: 1.5;
  }

  .auth-panel-inner {
    width: min(580px, 100%);
    padding: 36px 28px 26px;
  }
}

@media (max-width: 460px) {
  .auth-page {
    padding: 0;
  }

  .auth-shell {
    min-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .auth-hero {
    padding: max(20px, env(safe-area-inset-top)) 20px 19px;
  }

  .auth-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .auth-brand-mark svg {
    width: 24px;
    height: 24px;
  }

  .auth-brand-copy strong {
    font-size: .9rem;
  }

  .auth-brand-copy small {
    font-size: .72rem;
  }

  .auth-hero-copy {
    display: none;
  }

  .auth-panel-inner {
    padding: 30px 16px 24px;
  }

  .auth-form-heading {
    margin-bottom: 24px;
  }

  .auth-form-heading h2 {
    font-size: 1.65rem;
  }

  .auth-label-row {
    display: block;
  }

  .auth-field-hint {
    display: none;
  }

  .auth-form-surface {
    padding: 20px 16px;
    border-radius: 17px;
  }

  .auth-form-section-heading {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .auth-form-section-icon {
    width: 38px;
    height: 38px;
  }

  .auth-control.form-control {
    min-height: 60px;
    padding-left: 62px;
  }

  .auth-password-control.form-control {
    padding-right: 58px;
  }

  .auth-password-toggle {
    width: 42px;
    justify-content: center;
    padding-inline: 0;
  }

  .auth-password-toggle [data-password-toggle-label] {
    display: none;
  }

  .auth-help {
    margin-top: auto;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell,
  .auth-submit-spinner {
    animation: none;
  }

  .auth-control.form-control,
  .auth-control-icon,
  .auth-password-toggle,
  .auth-submit.btn {
    transition: none;
  }
}
