:root {
  color-scheme: light;
  --bg: #f6f6f7;
  --surface: #fff;
  --line: #e6e6ea;
  --text: #0b0b0f;
  --text-2: #3f3f46;
  --muted: #6b6b76;
  --accent: #5b5bd6;
  --accent-soft: #f0f0fd;
  --ring: 0 0 0 3px rgba(91, 91, 214, .18);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #09090b;
    --surface: #111114;
    --line: #232328;
    --text: #f4f4f6;
    --text-2: #c7c7cf;
    --muted: #8c8c97;
    --accent: #8486f2;
    --accent-soft: rgba(132, 134, 242, .12);
    --ring: 0 0 0 3px rgba(132, 134, 242, .24);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111114;
  --line: #232328;
  --text: #f4f4f6;
  --text-2: #c7c7cf;
  --muted: #8c8c97;
  --accent: #8486f2;
  --accent-soft: rgba(132, 134, 242, .12);
  --ring: 0 0 0 3px rgba(132, 134, 242, .24);
}
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100svh; margin: 0; overflow-x: hidden; background: var(--bg); }
button, input { font: inherit; }
.login-shell { position: relative; z-index: 1; display: flex; min-height: 100svh; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 24px; }
.login-card { width: min(100%, 420px); padding: 38px 40px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 70px rgba(24, 24, 39, .08), 0 2px 8px rgba(24, 24, 39, .03); animation: arrive .55s cubic-bezier(.2,.75,.2,1) both; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.mark { width: 34px; height: 34px; }
.brand span { display: grid; gap: 1px; }
.brand strong { font-size: 14px; letter-spacing: .11em; }
.brand small { color: var(--muted); font-size: 10px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 38px 0 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
h1 { margin: 0; font-size: clamp(32px, 9vw, 40px); font-weight: 650; letter-spacing: -.055em; line-height: 1.08; }
.intro { margin: 14px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.field { display: grid; gap: 8px; margin-top: 17px; }
.field label { color: var(--text-2); font-size: 12px; font-weight: 600; }
.field input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--text); background: var(--surface); font-size: 14px; transition: border-color .18s, box-shadow .18s; }
.field input:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.field input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 75px; }
.reveal { position: absolute; top: 50%; right: 11px; padding: 6px 4px; transform: translateY(-50%); border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 600; }
.reveal:hover { color: var(--accent); }
.form-error { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #f2caca; border-radius: 7px; color: #b42318; background: #fff5f4; font-size: 12px; line-height: 1.5; }
.submit { display: flex; width: 100%; height: 46px; align-items: center; justify-content: center; gap: 9px; margin-top: 22px; border: 0; border-radius: 8px; color: #fff; background: #18181b; cursor: pointer; font-size: 13px; font-weight: 650; transition: background .18s, transform .18s, opacity .18s; }
.submit:hover:not(:disabled) { transform: translateY(-1px); background: #34343b; }
.submit:focus-visible, .reveal:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.submit:disabled { cursor: wait; opacity: .7; }
.submit svg { width: 17px; height: 17px; transition: transform .18s; }
.submit:hover svg { transform: translateX(3px); }
.submit.loading svg { display: none; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 23px; color: var(--muted); font-size: 10px; }
.secure-note svg { width: 14px; height: 14px; }
footer { display: flex; width: min(100%, 420px); justify-content: space-between; margin-top: 19px; color: var(--muted); font-size: 9px; letter-spacing: .02em; }
footer span:first-child { font-weight: 700; letter-spacing: .1em; }
.ambient { position: fixed; z-index: 0; width: 380px; height: 380px; pointer-events: none; filter: blur(70px); opacity: .12; }
.ambient-one { top: -220px; right: -100px; background: #7778ed; }
.ambient-two { bottom: -260px; left: -140px; background: #d8a5e7; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { .login-shell { padding: 24px 16px 18px; } .login-card { padding: 29px 23px 24px; border-radius: 14px; } .eyebrow { margin-top: 31px; } footer { padding: 0 5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
