:root {
  --ink: #142223;
  --muted: #687778;
  --line: #d8e2df;
  --teal: #0f7772;
  --teal-dark: #102a2b;
  --lime: #d7f36b;
  --coral: #ff7657;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; min-height: 100vh; background: #fff; color: var(--ink); }
.page-language-toggle { position: fixed; top: 18px; right: 18px; z-index: 30; min-width: 44px; height: 36px; padding: 0 10px; border: 1px solid rgba(203,218,214,.8); border-radius: 7px; background: rgba(255,255,255,.9); color: var(--teal-dark); font-size: 10px; font-weight: 850; cursor: pointer; box-shadow: 0 8px 24px rgba(12,45,45,.08); }
.page-language-toggle:hover { border-color: var(--teal); color: var(--teal); }
.page-language-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
button, input { font: inherit; }
button { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.auth-shell { display: grid; grid-template-columns: minmax(420px, .95fr) minmax(480px, 1.05fr); min-height: 100vh; }

.auth-visual { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 100vh; padding: 34px clamp(32px, 5vw, 72px) 46px; background: var(--teal-dark); color: #fff; }

.auth-brand, .auth-mobile-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.auth-brand img, .auth-mobile-brand img { border-radius: 9px; }
.auth-brand span { display: flex; flex-direction: column; }
.auth-brand strong { font-size: 16px; }
.auth-brand small { margin-top: 2px; color: #9eb5b2; font-size: 9px; text-transform: uppercase; }

.radar-stage { position: relative; display: grid; place-items: center; width: min(68vh, 540px); aspect-ratio: 1; margin: auto; }
.radar-grid, .radar-grid::before, .radar-grid::after { position: absolute; border: 1px solid rgba(215, 243, 107, .18); border-radius: 50%; content: ""; }
.radar-grid { inset: 4%; }
.radar-grid::before { inset: 18%; }
.radar-grid::after { inset: 36%; }
.radar-stage::before, .radar-stage::after { position: absolute; background: rgba(215, 243, 107, .13); content: ""; }
.radar-stage::before { width: 92%; height: 1px; }
.radar-stage::after { width: 1px; height: 92%; }
.radar-sweep { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 300deg, rgba(215,243,107,.25), transparent 26%, transparent); animation: sweep 7s linear infinite; }
.radar-core { z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.07); box-shadow: 0 0 0 12px rgba(255,255,255,.025); }
.radar-core img { width: 38px; height: 38px; border-radius: 8px; }
.signal { position: absolute; z-index: 3; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 6px rgba(255,118,87,.12); }
.signal-one { top: 23%; right: 24%; }
.signal-two { bottom: 17%; left: 31%; background: var(--lime); box-shadow: 0 0 0 6px rgba(215,243,107,.12); }
.signal-three { top: 48%; left: 14%; background: #7396ef; box-shadow: 0 0 0 6px rgba(115,150,239,.12); }
@keyframes sweep { to { transform: rotate(360deg); } }

.visual-copy p { margin: 0 0 8px; color: var(--lime); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.visual-copy h1 { max-width: 520px; margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.14; letter-spacing: 0; }
.visual-metrics { display: flex; gap: 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.visual-metrics span { color: #a9bdb9; font-size: 10px; }
.visual-metrics b { margin-right: 5px; color: #fff; font-size: 15px; }

.auth-form-side { display: grid; place-items: center; min-height: 100vh; padding: 36px clamp(24px, 7vw, 100px); }
.auth-form-wrap { width: min(100%, 420px); }
.auth-mobile-brand { display: none; margin-bottom: 40px; }
.auth-heading p { margin: 0 0 6px; color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.auth-heading h2 { margin: 0; font-size: 30px; letter-spacing: 0; }
.auth-heading > span { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 30px 0 22px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #f2f5f4; }
.auth-tabs button { min-height: 36px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; cursor: pointer; }
.auth-tabs button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(20,34,35,.1); }
#authForm, .recovery-form, #resetForm { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field > span, .field-label-row { color: #354748; font-size: 11px; font-weight: 750; }
.field-label-row { display: flex; justify-content: space-between; align-items: center; }
.field-label-row button, .text-button { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 10px; cursor: pointer; }
.field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #cad6d2; border-radius: 6px; outline: none; color: var(--ink); }
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,119,114,.1); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 44px; }
.password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.consent { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.consent input { accent-color: var(--teal); }
.consent a { margin-left: 3px; color: var(--teal); }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 10px 24px rgba(15,119,114,.2); cursor: pointer; }
.primary-button:disabled { opacity: .6; cursor: wait; }
.text-button { min-height: 36px; }
.auth-status { min-height: 18px; margin: 14px 0 0; color: #a04734; font-size: 10px; line-height: 1.5; text-align: center; }
.auth-status.is-success { color: #28754d; }
.auth-assurance { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 22px; color: #667877; font-size: 9px; }
.auth-assurance span::before { display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--teal); content: ""; }
.auth-footer { margin: 34px 0 0; color: #8a9898; font-size: 9px; text-align: center; }
.auth-footer a { color: var(--teal); text-decoration: none; }
.is-hidden { display: none !important; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { min-height: 100vh; padding: 30px 22px; }
  .auth-mobile-brand { display: flex; }
}

@media (prefers-reduced-motion: reduce) { .radar-sweep { animation: none; } }
