:root {
  color-scheme: light;
  --ink: #172425;
  --muted: #718080;
  --line: #dbe6e4;
  --paper: #f4f7fb;
  --card: #ffffff;
  --blue: #2f80ed;
  --blue-dark: #1e5fb6;
  --green: #b8d94f;
  --shadow: 0 28px 70px rgba(31, 54, 53, .12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: radial-gradient(circle at 10% 0%, #e8f1ff 0, transparent 38%), var(--paper); color: var(--ink); }
button, a { font: inherit; }
[hidden] { display: none !important; }
.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 28px 18px; }
.auth-card { width: min(100%, 460px); padding: 42px 42px 36px; border: 1px solid rgba(188, 207, 237, .85); border-radius: 30px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); text-align: center; backdrop-filter: blur(20px); }
.auth-logo { display: block; width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 12px 26px rgba(118, 86, 232, .2); }
.auth-eyebrow { margin: 0 0 9px; color: #7568b6; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 42px); letter-spacing: -.055em; line-height: 1; }
.auth-lead { margin: 16px auto 26px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 0 17px; padding: 4px; border-radius: 12px; background: #edf2f0; }
.auth-tab { min-height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-tab.active { background: white; color: var(--ink); box-shadow: 0 3px 9px rgba(33, 57, 55, .08); }
.auth-form { display: grid; gap: 12px; text-align: left; }
.auth-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.auth-form input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: white; color: var(--ink); font: inherit; font-size: 14px; }
.auth-form input:focus { border-color: #8ab7f3; box-shadow: 0 0 0 3px rgba(47, 128, 237, .12); }
.auth-form small { margin-top: -1px; color: #8a9998; font-size: 10px; font-weight: 600; }
.primary-button { min-height: 50px; border: 0; border-radius: 14px; background: var(--blue); color: white; box-shadow: 0 10px 22px rgba(47, 128, 237, .24); font-weight: 800; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.primary-button:hover, .primary-button:focus-visible { background: var(--blue-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .55; }
.auth-note { margin: 20px 3px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-message { margin: -8px 0 19px; padding: 12px 14px; border: 1px solid #f0c8bd; border-radius: 12px; background: #fff4f0; color: #9a4939; font-size: 13px; line-height: 1.45; text-align: left; }
.auth-message.is-info { border-color: #c6daf8; background: #f2f7ff; color: #245b9d; }
.auth-footer { margin: 18px 0 0; color: #8a9998; font-size: 12px; text-align: center; }
@media (max-width: 520px) { .auth-card { padding: 34px 22px 28px; border-radius: 24px; } }
