:root {
  --auth-bg: #071018;
  --auth-panel: rgba(11, 20, 31, 0.8);
  --auth-panel-strong: rgba(10, 18, 28, 0.94);
  --auth-line: rgba(151, 180, 204, 0.15);
  --auth-line-strong: rgba(74, 210, 255, 0.42);
  --auth-text: #edf6ff;
  --auth-soft: #9eb4c9;
  --auth-muted: #7990a6;
  --auth-primary: #4f7cff;
  --auth-primary-2: #1fd1ff;
  --auth-success: #29d391;
  --auth-danger: #ff6b7d;
  --auth-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, 0.26), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(31, 209, 255, 0.16), transparent 20%),
    radial-gradient(circle at bottom right, rgba(41, 211, 145, 0.16), transparent 24%),
    linear-gradient(180deg, #08111a 0%, #050a11 100%);
}

html[data-theme="light"] body.auth-body {
  background:
    radial-gradient(circle at top left, rgba(33, 150, 243, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(28, 168, 161, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 183, 77, 0.14), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #eef4f7 100%);
}

button,
input,
select,
textarea,
a {
  font: inherit;
}

.auth-shell {
  width: min(1160px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: calc(100vh - 2.5rem);
  min-height: calc(100svh - 2.5rem);
  border: 1px solid var(--auth-line);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--auth-panel);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(18px);
}

.auth-aside {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  padding: 1.7rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(155deg, rgba(79, 124, 255, 0.88), rgba(31, 209, 255, 0.68));
}

.auth-badge,
.auth-stat span,
.auth-form-copy,
.form-label,
.auth-inline,
.auth-links,
.auth-meta {
  color: rgba(255, 255, 255, 0.86);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-brand h1,
.auth-form-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: -0.05em;
}

.auth-brand h1 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.93;
}

.auth-brand p,
.auth-feature p,
.auth-form-panel p,
.auth-card-note,
.form-helper,
.status-copy,
.forgot-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.auth-art {
  display: grid;
  gap: 1rem;
}

.auth-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.auth-stat,
.auth-feature {
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 15, 26, 0.18);
  backdrop-filter: blur(12px);
}

.auth-stat span,
.auth-feature span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-stat strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.75rem;
}

.auth-feature-list {
  display: grid;
  gap: 0.85rem;
}

.auth-form-panel {
  display: grid;
  align-content: center;
  gap: 1.1rem;
  padding: 2rem;
  background: var(--auth-panel-strong);
}

.auth-form-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.auth-body-login .auth-card {
  grid-template-columns: 1fr;
}

.auth-body-login .auth-aside {
  align-content: start;
}

.auth-body-signup .auth-card,
.auth-body-reset .auth-card {
  grid-template-columns: 1fr;
}

.auth-form-copy {
  color: var(--auth-soft);
}

.auth-form {
  display: grid;
  gap: 0.95rem;
}

.auth-grid {
  display: grid;
  gap: 0.9rem;
}

.auth-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-label {
  color: var(--auth-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-input,
.form-select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--auth-text);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--auth-line-strong);
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.12);
}

.form-input::placeholder {
  color: var(--auth-muted);
}

.auth-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--auth-soft);
  font-size: 0.92rem;
}

.auth-link,
.text-button {
  color: #95d8ff;
  text-decoration: none;
  font-weight: 700;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-submit {
  min-height: 3.35rem;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--auth-primary) 0%, var(--auth-primary-2) 100%);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(44, 92, 255, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.auth-submit:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.auth-submit:disabled,
.mini-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-meta {
  color: var(--auth-muted);
  font-size: 0.92rem;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.status-card,
.forgot-panel {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--auth-line);
  background: rgba(255, 255, 255, 0.03);
}

.status-card[hidden],
.forgot-panel[hidden] {
  display: none;
}

.status-card[data-state="success"] {
  border-color: rgba(41, 211, 145, 0.32);
  background: rgba(41, 211, 145, 0.1);
}

.status-card[data-state="error"] {
  border-color: rgba(255, 107, 125, 0.34);
  background: rgba(255, 107, 125, 0.08);
}

.status-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.status-copy {
  color: var(--auth-soft);
}

.mini-button {
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--auth-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--auth-text);
  font-weight: 700;
  cursor: pointer;
}

.forgot-panel {
  display: grid;
  gap: 0.9rem;
}

.session-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(41, 211, 145, 0.28);
  background:
    linear-gradient(180deg, rgba(41, 211, 145, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
}

.session-panel[hidden] {
  display: none;
}

.session-panel-copy {
  display: grid;
  gap: 0.4rem;
}

.session-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.secondary-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14rem;
  text-decoration: none;
}

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  color: #c6e9ff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 980px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    min-height: 20rem;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    width: min(100%, calc(100% - 0.75rem));
    padding: 0.4rem 0;
  }

  .auth-card {
    min-height: calc(100vh - 0.8rem);
    min-height: calc(100svh - 0.8rem);
    border-radius: 24px;
  }

  .auth-aside,
  .auth-form-panel {
    padding: 1.15rem;
  }

  .auth-grid.two-col,
  .auth-stat-grid {
    grid-template-columns: 1fr;
  }

  .auth-brand h1 {
    font-size: 2.3rem;
  }
}

body.auth-body {
  position: relative;
  overflow-x: hidden;
}

body.auth-body::before,
body.auth-body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
}

body.auth-body::before {
  top: 5rem;
  left: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 170, 255, 0.22), transparent 70%);
}

body.auth-body::after {
  right: -4rem;
  bottom: 4rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 224, 167, 0.18), transparent 72%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  padding: 1.2rem 0;
}

.auth-card {
  position: relative;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  border: 1px solid rgba(154, 191, 224, 0.14);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(7, 14, 24, 0.82);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-width: 920px;
  margin: 0 auto;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(130, 190, 255, 0.22), rgba(255, 255, 255, 0.02), rgba(43, 210, 186, 0.16));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-aside {
  padding: 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(160deg, rgba(33, 89, 236, 0.92) 0%, rgba(31, 191, 255, 0.78) 48%, rgba(10, 36, 78, 0.92) 100%);
}

.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-aside::before {
  top: 1.8rem;
  right: 2rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 72%);
}

.auth-aside::after {
  left: 2rem;
  bottom: 2rem;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.auth-brand-top,
.auth-logo-lockup,
.auth-logo-copy,
.auth-trust-strip,
.auth-panel-top,
.auth-panel-metrics,
.auth-spotlight-grid {
  display: flex;
}

.auth-brand-top,
.auth-panel-top {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-panel-top.single-action {
  justify-content: flex-end;
}

.auth-logo-lockup {
  align-items: center;
  gap: 0.9rem;
}

.auth-logo-inline {
  flex: 1 1 auto;
}

.auth-panel-top .auth-logo-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
}

.auth-panel-top .auth-logo-copy strong {
  font-size: 1rem;
}

.auth-panel-top .auth-logo-copy span {
  font-size: 0.78rem;
}

.auth-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    rgba(5, 13, 26, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.auth-logo-copy {
  flex-direction: column;
  gap: 0.15rem;
}

.auth-logo-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-logo-copy span,
.auth-chip,
.auth-panel-chip {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-logo-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.auth-chip,
.auth-panel-chip,
.auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 15, 28, 0.2);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 700;
}

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

.auth-brand h1 {
  max-width: 12ch;
  margin-top: 1.1rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.92;
}

.auth-brand p {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.auth-trust-strip {
  flex-wrap: wrap;
  gap: 0.65rem;
}

.auth-trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(3, 11, 20, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-art {
  position: relative;
  z-index: 1;
  gap: 1.15rem;
}

.auth-spotlight,
.auth-stat,
.auth-feature,
.status-card,
.forgot-panel {
  backdrop-filter: blur(16px);
}

.auth-spotlight {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(7, 14, 27, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-spotlight-copy {
  display: grid;
  gap: 0.45rem;
}

.auth-spotlight-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.auth-spotlight-copy strong {
  max-width: 24rem;
  font-size: 1.28rem;
  line-height: 1.25;
}

.auth-spotlight-grid {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-spotlight-card {
  flex: 1 1 10rem;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border-radius: 20px;
  background: rgba(7, 15, 27, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-spotlight-card span,
.auth-panel-metric span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.auth-spotlight-card strong,
.auth-panel-metric strong {
  font-size: 1rem;
}

.auth-spotlight-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
  font-size: 0.9rem;
}

.auth-stat-grid {
  gap: 1rem;
}

.auth-stat,
.auth-feature {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(7, 15, 28, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-stat {
  padding: 1.05rem;
}

.auth-stat strong {
  margin-top: 0.4rem;
  font-size: 1.6rem;
  line-height: 1.1;
}

.auth-feature-list {
  gap: 0.95rem;
}

.auth-feature {
  padding: 1.05rem;
}

.auth-form-panel {
  position: relative;
  align-content: start;
  gap: 1.15rem;
  padding: 1.9rem;
  background:
    radial-gradient(circle at top right, rgba(82, 133, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 18, 28, 0.97), rgba(8, 14, 24, 0.94));
}

.auth-form-panel::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.auth-back-link {
  background: rgba(255, 255, 255, 0.03);
  color: var(--auth-soft);
}

.auth-panel-chip {
  border-color: rgba(108, 193, 255, 0.2);
  background: rgba(79, 124, 255, 0.1);
  color: #b9e2ff;
}

.auth-form-panel h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.96;
}

.auth-form-copy {
  max-width: 32rem;
  font-size: 0.98rem;
  color: var(--auth-soft);
}

.auth-panel-metrics {
  gap: 0.8rem;
  flex-wrap: wrap;
}

.auth-panel-metric {
  flex: 1 1 9.5rem;
  min-width: 0;
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(135, 170, 206, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.025);
}

.auth-form {
  gap: 1rem;
}

.form-field {
  gap: 0.5rem;
}

.form-label {
  color: #c0d6ea;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-input,
.form-select {
  min-height: 3.55rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(130, 159, 191, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(6, 12, 20, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.form-input:hover,
.form-select:hover {
  border-color: rgba(105, 171, 255, 0.26);
}

.form-input:focus,
.form-select:focus {
  transform: translateY(-1px);
  border-color: rgba(104, 188, 255, 0.46);
  box-shadow:
    0 0 0 4px rgba(67, 130, 255, 0.1),
    0 12px 28px rgba(17, 40, 78, 0.28);
}

.auth-check {
  padding: 0.35rem 0;
}

.auth-submit {
  position: relative;
  overflow: hidden;
  min-height: 3.7rem;
  border-radius: 20px;
  background: linear-gradient(90deg, #3467ff 0%, #14befe 100%);
  box-shadow:
    0 18px 34px rgba(44, 92, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  letter-spacing: 0.02em;
}

.auth-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.16) 48%, transparent 78%);
  transform: translateX(-100%);
  transition: transform 240ms ease;
}

.auth-submit:hover::after {
  transform: translateX(100%);
}

.mini-button {
  min-height: 2.9rem;
  border-radius: 16px;
  border: 1px solid rgba(134, 170, 205, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.03);
}

.status-card,
.forgot-panel {
  border-radius: 22px;
  border: 1px solid rgba(134, 170, 205, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.025);
}

.status-card strong {
  font-size: 1rem;
}

.status-copy {
  color: #bfd4e7;
}

.session-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-links {
  justify-content: space-between;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-link,
.text-button,
.status-link {
  transition: opacity 140ms ease, color 140ms ease;
}

.auth-link:hover,
.text-button:hover,
.status-link:hover,
.auth-back-link:hover {
  opacity: 0.9;
}

html[data-theme="light"] body.auth-body {
  color: #10233f;
  background:
    radial-gradient(circle at top left, rgba(89, 136, 255, 0.16), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(34, 197, 190, 0.14), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255, 193, 118, 0.18), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #edf4fb 48%, #e9f1f8 100%);
}

html[data-theme="light"] body.auth-body::before {
  background: radial-gradient(circle, rgba(82, 153, 255, 0.22), transparent 72%);
}

html[data-theme="light"] body.auth-body::after {
  background: radial-gradient(circle, rgba(64, 209, 180, 0.16), transparent 72%);
}

html[data-theme="light"] .auth-card {
  border: 1px solid rgba(154, 183, 216, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 28px 72px rgba(90, 117, 160, 0.16),
    0 8px 22px rgba(95, 135, 196, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .auth-card::before {
  background: linear-gradient(140deg, rgba(94, 146, 255, 0.28), rgba(255, 255, 255, 0.78), rgba(66, 199, 177, 0.18));
}

html[data-theme="light"] .auth-form-panel {
  background:
    radial-gradient(circle at top right, rgba(100, 149, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.96));
}

html[data-theme="light"] .auth-form-panel::before {
  border-color: rgba(145, 177, 214, 0.34);
}

html[data-theme="light"] .auth-panel-top .auth-logo-mark,
html[data-theme="light"] .auth-logo-mark {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(220, 233, 249, 0.88)),
    rgba(235, 242, 251, 0.9);
  border-color: rgba(143, 171, 206, 0.4);
  color: #27497d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 20px rgba(99, 132, 179, 0.12);
}

html[data-theme="light"] .auth-logo-copy strong,
html[data-theme="light"] .auth-form-panel h2,
html[data-theme="light"] .status-card strong,
html[data-theme="light"] .session-panel-copy strong {
  color: #0f274d;
}

html[data-theme="light"] .auth-logo-copy span,
html[data-theme="light"] .auth-form-copy,
html[data-theme="light"] .auth-meta,
html[data-theme="light"] .status-copy,
html[data-theme="light"] .forgot-panel p,
html[data-theme="light"] .auth-inline,
html[data-theme="light"] .auth-check {
  color: #5a6f89;
}

html[data-theme="light"] .auth-panel-chip,
html[data-theme="light"] .auth-back-link {
  border-color: rgba(123, 161, 214, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 242, 255, 0.86)),
    rgba(238, 246, 255, 0.88);
  color: #27436d;
  box-shadow: 0 10px 24px rgba(126, 159, 205, 0.12);
}

html[data-theme="light"] .auth-panel-chip:hover,
html[data-theme="light"] .auth-back-link:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(223, 237, 255, 0.94)),
    rgba(241, 247, 255, 0.94);
}

html[data-theme="light"] .form-label {
  color: #58708e;
}

html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select {
  border-color: rgba(149, 177, 210, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.94)),
    rgba(255, 255, 255, 0.95);
  color: #10233f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 6px 18px rgba(126, 151, 186, 0.06);
}

html[data-theme="light"] .form-input::placeholder {
  color: #8aa0ba;
}

html[data-theme="light"] .form-input:hover,
html[data-theme="light"] .form-select:hover {
  border-color: rgba(100, 144, 206, 0.54);
}

html[data-theme="light"] .form-input:focus,
html[data-theme="light"] .form-select:focus {
  border-color: rgba(71, 129, 224, 0.62);
  box-shadow:
    0 0 0 4px rgba(73, 130, 224, 0.1),
    0 14px 28px rgba(105, 138, 187, 0.12);
}

html[data-theme="light"] .auth-submit {
  background: linear-gradient(90deg, #356bff 0%, #1aa8f2 100%);
  box-shadow:
    0 18px 34px rgba(52, 107, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html[data-theme="light"] .mini-button {
  border-color: rgba(154, 183, 216, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 254, 0.92)),
    rgba(255, 255, 255, 0.96);
  color: #16345d;
  box-shadow: 0 10px 24px rgba(116, 148, 193, 0.08);
}

html[data-theme="light"] .status-card,
html[data-theme="light"] .forgot-panel {
  border-color: rgba(154, 183, 216, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.9)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(126, 151, 186, 0.08);
}

html[data-theme="light"] .status-card[data-state="success"] {
  border-color: rgba(41, 179, 133, 0.32);
  background:
    linear-gradient(180deg, rgba(234, 255, 245, 0.96), rgba(244, 251, 247, 0.92)),
    rgba(239, 252, 246, 0.94);
}

html[data-theme="light"] .status-card[data-state="error"] {
  border-color: rgba(236, 100, 123, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 244, 246, 0.96), rgba(255, 248, 249, 0.94)),
    rgba(255, 245, 247, 0.94);
}

html[data-theme="light"] .session-panel {
  border-color: rgba(74, 183, 132, 0.26);
  background:
    linear-gradient(180deg, rgba(235, 251, 242, 0.96), rgba(245, 252, 247, 0.92)),
    rgba(241, 251, 245, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(128, 162, 138, 0.1);
}

html[data-theme="light"] .auth-links {
  border-top-color: rgba(157, 182, 211, 0.32);
}

html[data-theme="light"] .auth-link,
html[data-theme="light"] .text-button,
html[data-theme="light"] .status-link {
  color: #1e63db;
}

@media (max-width: 1120px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    gap: 1.25rem;
  }

  .auth-brand h1 {
    max-width: 16ch;
  }
}

@media (max-width: 720px) {
  .auth-shell {
    width: min(100%, calc(100% - 0.9rem));
    padding: 0.45rem 0;
  }

  .auth-card {
    min-height: calc(100vh - 0.9rem);
    min-height: calc(100svh - 0.9rem);
    border-radius: 28px;
    grid-template-columns: 1fr;
  }

  .auth-aside,
  .auth-form-panel {
    padding: 1.2rem;
  }

  .auth-form-panel::before {
    inset: 0.8rem;
    border-radius: 22px;
  }

  .auth-panel-metrics,
  .auth-spotlight-grid,
  .auth-stat-grid,
  .auth-feature-list {
    display: grid;
  }

  .auth-panel-metrics,
  .auth-spotlight-grid,
  .auth-stat-grid {
    grid-template-columns: 1fr;
  }

  .auth-brand h1 {
    font-size: 2.05rem;
  }

  .auth-panel-top,
  .auth-links {
    align-items: stretch;
  }

  .session-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ─── Login page: compact centered modal ─── */
.auth-body-login .auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 3rem);
  padding: 1.5rem 0;
}

.auth-body-login .auth-card {
  max-width: 460px;
  width: 100%;
  min-height: auto;
  border-radius: 28px;
}

.auth-body-login .auth-form-panel {
  padding: 1.75rem 1.9rem;
  gap: 0.85rem;
  border-radius: 28px;
}

.auth-body-login .auth-form-panel::before {
  inset: 0.75rem;
  border-radius: 20px;
}

.auth-body-login .auth-panel-top {
  gap: 0.55rem;
}

.auth-body-login .auth-panel-top .auth-logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.72rem;
  border-radius: 0.6rem;
}

.auth-body-login .auth-panel-top .auth-logo-copy strong {
  font-size: 0.82rem;
}

.auth-body-login .auth-panel-top .auth-logo-copy span {
  font-size: 0.65rem;
}

.auth-body-login .auth-panel-chip {
  min-height: 1.9rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
  border-radius: 999px;
}

.auth-body-login .auth-form-panel h2 {
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.auth-body-login .auth-form-copy {
  font-size: 0.82rem;
  margin-top: -0.2rem;
}

.auth-body-login .auth-form {
  gap: 0.7rem;
}

.auth-body-login .form-field {
  gap: 0.35rem;
}

.auth-body-login .form-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.auth-body-login .form-input,
.auth-body-login .form-select {
  min-height: 2.55rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  border-radius: 12px;
}

.auth-body-login .auth-inline {
  font-size: 0.82rem;
}

.auth-body-login .auth-check {
  font-size: 0.82rem;
  gap: 0.4rem;
}

.auth-body-login .auth-submit {
  min-height: 2.65rem;
  font-size: 0.88rem;
  border-radius: 14px;
  box-shadow:
    0 10px 24px rgba(44, 92, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.auth-body-login .auth-meta,
.auth-body-login .auth-link {
  font-size: 0.82rem;
}

.auth-body-login .auth-links {
  padding-top: 0.5rem;
}

@media (max-width: 520px) {
  .auth-body-login .auth-card {
    border-radius: 22px;
  }

  .auth-body-login .auth-form-panel {
    padding: 1.35rem 1.25rem;
  }
}

/* ─── Signup page: compact centered modal ─── */
.auth-body-signup .auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 3rem);
  padding: 1.5rem 0;
}

.auth-body-signup .auth-card {
  max-width: 560px;
  width: 100%;
  min-height: auto;
  border-radius: 28px;
  grid-template-columns: 1fr;
}

.auth-body-signup .auth-form-panel {
  padding: 1.6rem 1.8rem;
  gap: 0.75rem;
  border-radius: 28px;
}

.auth-body-signup .auth-form-panel::before {
  inset: 0.75rem;
  border-radius: 20px;
}

.auth-body-signup .auth-panel-top {
  gap: 0.55rem;
}

.auth-body-signup .auth-panel-top .auth-logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.72rem;
  border-radius: 0.6rem;
}

.auth-body-signup .auth-panel-top .auth-logo-copy strong {
  font-size: 0.82rem;
}

.auth-body-signup .auth-panel-top .auth-logo-copy span {
  font-size: 0.65rem;
}

.auth-body-signup .auth-panel-chip {
  min-height: 1.9rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
  border-radius: 999px;
}

.auth-body-signup .auth-form-panel h2 {
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth-body-signup .auth-form-copy {
  font-size: 0.8rem;
  margin-top: -0.2rem;
}

.auth-body-signup .auth-form {
  gap: 0.6rem;
}

.auth-body-signup .form-field {
  gap: 0.3rem;
}

.auth-body-signup .form-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.auth-body-signup .form-input,
.auth-body-signup .form-select {
  min-height: 2.4rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.84rem;
  border-radius: 11px;
}

.auth-body-signup .auth-grid.two-col {
  gap: 0.6rem;
}

.auth-body-signup .auth-submit {
  min-height: 2.55rem;
  font-size: 0.86rem;
  border-radius: 13px;
  margin-top: 0.1rem;
}

.auth-body-signup .auth-meta,
.auth-body-signup .auth-link {
  font-size: 0.8rem;
}

.auth-body-signup .auth-links {
  padding-top: 0.4rem;
}

@media (max-width: 600px) {
  .auth-body-signup .auth-card {
    border-radius: 22px;
    max-width: 100%;
  }

  .auth-body-signup .auth-form-panel {
    padding: 1.25rem 1.1rem;
  }

  .auth-body-signup .auth-grid.two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.auth-body {
    background:
      radial-gradient(circle at top left, rgba(79, 124, 255, 0.2), transparent 28%),
      radial-gradient(circle at bottom right, rgba(31, 209, 255, 0.18), transparent 26%),
      linear-gradient(180deg, #0a1420 0%, #050b12 100%);
  }

  .auth-aside {
    display: none;
  }

  .auth-form-panel {
    order: 1;
    padding: 1.2rem;
    border-radius: 24px;
    width: 100%;
  }

  .auth-form-panel h2 {
    font-size: 1.75rem;
  }

  .form-input,
  .form-select {
    min-height: 2.8rem;
    padding: 0.75rem 0.85rem;
  }

  .auth-card {
    min-height: 100svh;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .auth-body-login .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    width: 100%;
    padding: 0;
  }
}

@media (max-width: 720px) {
  html[data-theme="light"] body.auth-body {
    background:
      radial-gradient(circle at top left, rgba(92, 138, 255, 0.16), transparent 30%),
      radial-gradient(circle at bottom right, rgba(52, 201, 189, 0.14), transparent 28%),
      linear-gradient(180deg, #f9fbff 0%, #edf4fb 100%);
  }

  html[data-theme="light"] .auth-card {
    box-shadow:
      0 20px 48px rgba(91, 117, 161, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.94);
  }

  html[data-theme="light"] .auth-form-panel {
    background:
      radial-gradient(circle at top right, rgba(110, 155, 255, 0.08), transparent 26%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
  }
}

@media (max-width: 520px) {
  .auth-shell {
    width: 100%;
    padding: 0;
  }

  .auth-card {
    border-radius: 0;
  }

  .auth-brand h1 {
    font-size: 1.75rem;
  }

  .auth-form-panel h2 {
    font-size: 1.55rem;
  }

  .auth-chip,
  .auth-panel-chip {
    min-height: 2.3rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
  }
}
