:root { color-scheme: light; --auth-bg:#f3f6fc; --auth-card:#fff; --auth-text:#101c35; --auth-muted:#64748b; --auth-line:#e4eaf4; --auth-field:#f8faff; --auth-success-bg:#ecfdf5; --auth-success-border:#a7f3d0; --auth-success-text:#047857; --auth-error:#dc2626; }
html[data-theme="dark"] { color-scheme:dark; --auth-bg:#0b1426; --auth-card:#111e33; --auth-text:#edf4ff; --auth-muted:#9aabc4; --auth-line:#293a55; --auth-field:#0c192d; --auth-success-bg:#12352f; --auth-success-border:#236b58; --auth-success-text:#a7f3d0; --auth-error:#fda4af; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:var(--auth-bg); color:var(--auth-text); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.auth-page { min-height:100vh; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr); }
.auth-visual { position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; min-height:100vh; padding:48px clamp(32px,6vw,92px); color:#fff; background:radial-gradient(circle at 82% 16%,rgba(111,174,255,.55),transparent 30%),linear-gradient(145deg,#0b3b9a 0%,#1456d9 48%,#2479f2 100%); }
.auth-visual:before,.auth-visual:after { content:""; position:absolute; border:1px solid rgba(255,255,255,.13); border-radius:50%; pointer-events:none; }
.auth-visual:before { width:620px;height:620px;right:-250px;bottom:-220px; }
.auth-visual:after { width:440px;height:440px;right:-160px;bottom:-130px; }
.auth-brand { position:relative;z-index:1;display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none; }
.auth-brand img { width:52px;height:52px;object-fit:cover;border-radius:16px;background:#fff;box-shadow:0 8px 24px #082e7850; }
.auth-brand-name { display:block;font-size:24px;font-weight:800;letter-spacing:.12em;line-height:1.1; }
.auth-brand-sub { display:block;margin-top:5px;font-size:12px;color:#d9e8ff;letter-spacing:.02em; }
.auth-visual-copy { position:relative;z-index:1;max-width:590px;margin:auto 0;padding:70px 0; }
.auth-eyebrow { display:inline-flex;align-items:center;gap:9px;padding:8px 13px;border:1px solid #ffffff38;border-radius:99px;background:#ffffff14;color:#e4efff;font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase; }
.auth-visual h1 { margin:25px 0 16px;font-size:clamp(38px,4.6vw,64px);line-height:1.08;letter-spacing:-.045em;font-weight:800; }
.auth-visual-copy p { max-width:470px;margin:0;color:#dbeafe;font-size:16px;line-height:1.8; }
.auth-visual-footer { position:relative;z-index:1;color:#c9ddff;font-size:12px; }
.auth-orbit { position:absolute;right:9%;bottom:14%;width:220px;height:220px;border:1px solid #ffffff25;border-radius:50%;box-shadow:0 0 0 35px #ffffff0b,0 0 0 70px #ffffff08; }
.auth-main { display:flex;align-items:center;justify-content:center;padding:42px clamp(22px,5vw,76px); }
.auth-card { width:100%;max-width:460px;padding:clamp(26px,4vw,44px);border:1px solid var(--auth-line);border-radius:26px;background:var(--auth-card);box-shadow:0 24px 70px rgba(22,53,104,.09); }
.auth-mobile-brand { display:none; }
.auth-heading { margin-bottom:30px; }
.auth-heading .eyebrow { color:#2563eb;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase; }
.auth-heading h2 { margin:10px 0 8px;color:var(--auth-text);font-size:30px;line-height:1.2;font-weight:800;letter-spacing:-.035em; }
.auth-heading p { margin:0;color:var(--auth-muted);font-size:14px;line-height:1.65; }
.auth-label { display:block;margin-bottom:9px;color:var(--auth-text);font-size:13px;font-weight:650; }
.auth-input-wrap { position:relative; }
.auth-input-icon { position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#8293ad;pointer-events:none; }
.auth-input { display:block;width:100%;height:54px;padding:0 48px;border:1px solid var(--auth-line);border-radius:13px;background:var(--auth-field);color:var(--auth-text);font:inherit;font-size:14px;outline:none;transition:border-color .18s,box-shadow .18s,background .18s; }
.auth-input::placeholder { color:#94a3b8; }
.auth-input:focus { border-color:#3980f6;box-shadow:0 0 0 4px rgba(37,99,235,.12); }
.auth-field { margin-bottom:20px; }
.auth-password-toggle { position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;width:38px;height:38px;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--auth-muted);cursor:pointer; }
.auth-password-toggle:hover { background:rgba(100,116,139,.1);color:#2563eb; }
.auth-options { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 25px; }
.auth-remember { display:flex;align-items:center;gap:9px;color:var(--auth-muted);font-size:13px;cursor:pointer; }
.auth-remember input { width:16px;height:16px;accent-color:#2563eb; }
.auth-link { color:#2563eb;font-size:13px;font-weight:650;text-decoration:none; }
.auth-link:hover { text-decoration:underline; }
.auth-submit { display:flex;width:100%;height:54px;align-items:center;justify-content:center;gap:10px;border:0;border-radius:13px;background:linear-gradient(100deg,#1456d9,#2878f3);color:#fff;font-size:14px;font-weight:750;box-shadow:0 9px 20px rgba(37,99,235,.23);cursor:pointer;transition:transform .18s,box-shadow .18s; }
.auth-submit:hover { transform:translateY(-1px);box-shadow:0 13px 25px rgba(37,99,235,.3); }
.auth-submit:focus-visible,.auth-password-toggle:focus-visible,.auth-theme:focus-visible { outline:3px solid #93c5fd;outline-offset:3px; }
.auth-bottom { margin:26px 0 0;padding-top:20px;border-top:1px solid var(--auth-line);color:var(--auth-muted);font-size:11px;line-height:1.7;text-align:center; }
.auth-tools { display:flex;align-items:center;justify-content:flex-end;margin-bottom:22px; }
.auth-theme { display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid var(--auth-line);border-radius:99px;background:var(--auth-field);color:var(--auth-muted);font-size:12px;cursor:pointer; }
.auth-theme svg { width:15px;height:15px; }
.auth-status { margin-bottom:20px;border:1px solid var(--auth-success-border)!important;border-radius:12px;padding:12px 14px;background:var(--auth-success-bg)!important;color:var(--auth-success-text)!important;font-size:13px; }
.auth-error { color:var(--auth-error)!important; }
.auth-input[aria-invalid="true"] { border-color:var(--auth-error); }
.auth-input[aria-invalid="true"]:focus { box-shadow:0 0 0 4px color-mix(in srgb,var(--auth-error) 16%,transparent); }
@media(max-width:900px) { .auth-page { grid-template-columns:1fr; } .auth-visual { min-height:auto;padding:24px 25px 34px;border-radius:0 0 28px 28px; } .auth-visual-copy { padding:34px 0 10px; } .auth-visual h1 { max-width:520px;margin:17px 0 10px;font-size:clamp(30px,7vw,42px); } .auth-visual-copy p { font-size:13px;line-height:1.6; } .auth-visual-footer,.auth-orbit { display:none; } .auth-brand img { width:42px;height:42px;border-radius:13px; } .auth-brand-name { font-size:20px; } .auth-main { align-items:flex-start;padding:24px 18px 36px; } .auth-card { max-width:520px;margin:0 auto;padding:26px 22px;border-radius:22px; } .auth-tools { margin-bottom:16px; } }
@media(max-width:420px) { .auth-visual { padding:20px 20px 28px; } .auth-visual-copy { padding-top:28px; } .auth-main { padding:18px 13px 28px; } .auth-card { padding:23px 18px; } .auth-heading h2 { font-size:27px; } .auth-options { align-items:flex-start; } }
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior:auto!important;transition:none!important; } }

/* Defensive sizing: SVGs must never expand when another stylesheet fails. */
.auth-input-icon { width:18px; height:18px; }
.auth-password-toggle svg { width:19px; height:19px; }
.auth-theme svg { width:15px; height:15px; }
.auth-icon-hidden { display:none !important; }
