:root { color-scheme:light; --ink:#22252a; --blue:#2466b8; --muted:#646b75; --line:#dfe2e7; --danger:#9d352f; --success:#286449; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; letter-spacing:0; }
body { margin:0; color:var(--ink); background:#f5f6f8; font-size:1rem; line-height:1.5; -webkit-font-smoothing:antialiased; }
button,input { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:inherit; }
:focus-visible { outline:3px solid #448ada; outline-offset:3px; }
.auth-shell { position:relative; min-height:100svh; padding:212px 24px 40px; isolation:isolate; }
.auth-visual { position:absolute; inset:0 0 auto; height:356px; z-index:-1; overflow:hidden; background:#142735; }
.auth-visual>img { width:100%; height:100%; object-fit:cover; object-position:center 46%; }
.visual-overlay { position:absolute; inset:0; background:linear-gradient(180deg,#14273550,transparent 70%,#14273510); color:white; }
.visual-brand { position:absolute; left:36px; top:18px; }
.visual-brand img { display:block; width:88px; height:60px; object-fit:contain; filter:brightness(0) invert(1); }
.visual-copy { position:absolute; right:36px; top:30px; text-align:right; }
.visual-copy h1 { font-size:1.5rem; line-height:1.25; font-weight:600; margin:0; }
.visual-copy h1 span { color:#b5d8ff; }
.visual-copy>p,.visual-copy>span { display:none; }
.auth-workspace { position:relative; max-width:480px; margin:auto; display:flex; flex-direction:column; background:white; border:1px solid #e2e6ec; border-radius:8px; box-shadow:0 8px 40px #253c5210; }
.mobile-header { display:none; }
.auth-content { width:100%; padding:28px 36px 24px; }
.back-link,.section-back { display:inline-flex; align-items:center; min-height:44px; border:0; background:none; padding:0; text-decoration:none; color:var(--muted); font-size:.875rem; margin-bottom:14px; }
.back-link:hover,.text-button:hover,footer a:hover { text-decoration:underline; text-underline-offset:4px; }
.portal-switch { display:grid; grid-template-columns:1fr 1fr; padding:4px; gap:4px; background:#edf0f4; border-radius:8px; margin-bottom:28px; }
.portal-switch a { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px; font-size:.875rem; text-decoration:none; color:var(--muted); border-radius:5px; }
.portal-switch img { width:18px; height:18px; opacity:.7; }
.portal-switch .active { background:#fff; color:var(--ink); box-shadow:0 1px 4px #20252c14; font-weight:600; }
.auth-view { display:none; }
.auth-view.active { display:block; }
.eyebrow { margin:0 0 8px; color:var(--blue); font-size:.8125rem; font-weight:500; }
.auth-view h2 { font-size:1.875rem; line-height:1.2; font-weight:650; margin:0 0 12px; overflow-wrap:break-word; }
.intro { margin:0 0 26px; color:var(--muted); font-size:1rem; line-height:1.5; }
.auth-form { display:grid; gap:20px; }
.auth-form label:not(.check) { display:grid; gap:8px; font-size:.875rem; font-weight:500; }
.auth-form input:not([type="checkbox"]) { width:100%; min-width:0; min-height:48px; border:1px solid #c6cbd3; border-radius:7px; padding:11px 13px; color:var(--ink); background:#fff; font-size:1rem; }
.auth-form input:focus { outline:3px solid #2466b833; outline-offset:1px; border-color:var(--blue); }
.auth-form small { color:var(--muted); font-weight:400; font-size:.8125rem; }
.password-field { display:flex; position:relative; }
.password-field input { padding-right:50px !important; }
.password-toggle { position:absolute; inset:2px 2px 2px auto; width:44px; display:grid; place-items:center; padding:0; border:0; border-radius:5px; background:transparent; }
.password-toggle:hover { background:#edf2f5; }
.password-toggle img { width:20px; height:20px; opacity:.7; }
.form-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:4px 12px; }
.check { display:flex; align-items:center; min-height:44px; gap:8px; color:var(--muted); font-size:.875rem; line-height:1.5; }
.check input { flex:none; width:18px; height:18px; margin:0; accent-color:var(--blue); }
.check.consent { align-items:flex-start; }
.check.consent input { margin-top:3px; }
.text-button { min-height:44px; border:0; padding:5px 0; color:var(--blue); background:none; font-size:.875rem; font-weight:500; }
.primary { min-height:48px; display:flex; justify-content:center; align-items:center; border:1px solid var(--blue); border-radius:7px; padding:12px 17px; color:white; background:var(--blue); font-weight:600; }
.primary:hover { background:#19569e; }
.primary:disabled { opacity:.55; cursor:wait; }
.code-input { text-align:center; font-size:1.5rem !important; }
.form-message { min-height:0; margin-top:16px; font-size:.875rem; line-height:1.6; }
.form-message:empty { margin:0; }
.form-message.error { padding:12px; color:var(--danger); background:#f9ece9; border-left:2px solid #bd5950; }
.form-message.success { padding:12px; color:var(--success); background:#edf5ee; border-left:2px solid #538569; }
.support-copy { margin:24px 0 0; padding-top:20px; border-top:1px solid var(--line); color:var(--muted); font-size:.875rem; line-height:1.6; }
.auth-workspace footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; padding:16px 36px; border-top:1px solid var(--line); font-size:.8125rem; color:var(--muted); }
.auth-workspace footer span { display:flex; gap:7px; align-items:center; }
.auth-workspace footer img { width:16px; height:16px; opacity:.65; }
.auth-workspace footer a { min-height:32px; display:flex; align-items:center; text-decoration:none; color:var(--blue); }
@media(min-width:1600px) { .auth-shell { padding-top:240px; } .auth-visual { height:400px; } }
@media(max-width:600px) {
  .auth-shell { padding:180px 16px 24px; }
  .auth-visual { height:280px; }
  .auth-visual>img { object-position:60% 46%; }
  .visual-brand { left:20px; top:14px; }
  .visual-brand img { width:74px; height:52px; }
  .visual-copy { right:20px; top:28px; }
  .visual-copy h1 { font-size:1.125rem; }
  .auth-content { padding:20px 24px 24px; }
  .auth-view h2 { font-size:1.625rem; }
  .auth-workspace footer { padding:16px 24px; }
}
@media(max-width:380px) { .auth-content { padding-right:18px; padding-left:18px; } .portal-switch a { gap:6px; padding:8px 4px; } .form-row { align-items:flex-start; flex-direction:column; } .portal-switch img { width:16px; height:16px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }
