/* Authentication pages share the dashboard theme tokens. */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: var(--bg); }
.auth-shell { width: min(1040px, 100%); min-height: 620px; display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 70px rgba(20, 42, 36, .10); }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; overflow: hidden; background: #102c27; color: #f2faf6; }
.auth-visual::before { content: ""; position: absolute; inset: -20% -35% auto auto; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(93, 196, 164, .30), rgba(20, 125, 108, .05) 55%, transparent 70%); }
.auth-visual::after { content: ""; position: absolute; inset: auto auto -40% -30%; width: 540px; height: 540px; border-radius: 50%; border: 1px solid rgba(190, 228, 216, .12); box-shadow: 0 0 0 70px rgba(190, 228, 216, .035), 0 0 0 150px rgba(190, 228, 216, .022); }
.auth-brand, .auth-story, .auth-foot { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #eafff8; background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .14); }
.auth-logo svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-brand-name { font-size: 20px; font-weight: 730; letter-spacing: .08em; }
.auth-brand-sub { margin-top: 2px; color: rgba(224, 243, 236, .58); font-size: 9px; letter-spacing: .18em; }
.auth-story h1 { max-width: 340px; margin: 0; font-size: 36px; line-height: 1.3; letter-spacing: -.045em; font-weight: 690; }
.auth-story p { max-width: 330px; margin: 16px 0 0; color: rgba(222, 240, 233, .68); font-size: 12px; line-height: 1.9; }
.auth-signal { margin-top: 34px; padding: 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .055); backdrop-filter: blur(8px); }
.signal-head { display: flex; align-items: center; justify-content: space-between; color: rgba(222, 240, 233, .62); font-size: 10px; }
.signal-live { display: inline-flex; align-items: center; gap: 5px; color: #8fe0c9; }
.signal-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(143, 224, 201, .10); }
.signal-bars { height: 75px; margin-top: 15px; display: flex; align-items: end; gap: 6px; }
.signal-bars span { flex: 1; min-width: 0; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, rgba(126, 218, 189, .76), rgba(126, 218, 189, .18)); }
.signal-meta { display: flex; justify-content: space-between; margin-top: 13px; color: rgba(222, 240, 233, .48); font-size: 9px; }
.auth-foot { display: flex; align-items: center; gap: 7px; color: rgba(222, 240, 233, .50); font-size: 10px; }
.auth-foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.auth-form-side { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 60px; background: var(--surface); }
.auth-form { width: min(360px, 100%); }
.auth-kicker { color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.auth-form h2 { margin: 7px 0 0; color: var(--ink); font-size: 28px; font-weight: 700; letter-spacing: -.035em; }
.auth-intro { margin: 10px 0 28px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.auth-field { display: block; margin-bottom: 16px; }
.auth-field span { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 11px; font-weight: 620; }
.auth-field input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); outline: none; }
.auth-field input::placeholder { color: var(--faint); }
.auth-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent); }
.auth-hint { margin: -7px 0 16px; color: var(--faint); font-size: 10px; line-height: 1.7; }
.auth-button { width: 100%; min-height: 45px; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--primary); border-radius: 9px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 650; cursor: pointer; }
.auth-button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.auth-button:disabled { opacity: .6; cursor: wait; }
html[data-theme="dark"] .auth-button { color: #10231f; }
.auth-error { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--danger-line); border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 11px; line-height: 1.7; }
.auth-success { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--primary-line); border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 11px; line-height: 1.7; }
.auth-note { margin: 19px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.8; }
.auth-note strong { color: var(--ink-2); font-weight: 600; }
.auth-theme { position: absolute; top: 18px; right: 18px; }
.auth-theme button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; }
.auth-theme button:hover { background: var(--surface-hover); color: var(--ink); }
.auth-theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-setup-badge { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px; padding: 4px 8px; border: 1px solid var(--warning-line); border-radius: 6px; background: var(--warning-soft); color: var(--warning); font-size: 9px; font-weight: 650; }
@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; max-width: 500px; }
  .auth-visual { min-height: 188px; padding: 27px 28px; }
  .auth-story h1 { max-width: 390px; margin-top: 24px; font-size: 27px; }
  .auth-story p, .auth-signal, .auth-foot { display: none; }
  .auth-form-side { padding: 38px 28px 36px; }
}
@media (max-width: 520px) {
  .auth-page { padding: 12px; place-items: start center; }
  .auth-shell { margin-top: 8px; border-radius: 17px; }
  .auth-visual { min-height: 156px; padding: 22px; }
  .auth-story h1 { margin-top: 18px; font-size: 23px; }
  .auth-form-side { padding: 30px 21px; }
  .auth-form h2 { font-size: 24px; }
  .auth-theme { top: 12px; right: 12px; }
}
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }
.auth-back { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 10px; text-decoration: none; }
.auth-back:hover { color: var(--primary); }
