/* Shared CARANEX access screens. Corporate tokens come from /brand.css. */
* { box-sizing:border-box; }
html { color-scheme:light; background:var(--brand-navy); }
body.access-page { margin:0; min-height:100vh; min-height:100dvh; display:grid; align-items:center; justify-items:center; padding:24px 20px; background:var(--brand-navy); color:var(--brand-navy); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.5; -webkit-font-smoothing:antialiased; }
.access-shell { width:min(440px,100%); }
.access-shell-wide { width:min(760px,100%); }
.access-card { padding:28px 32px; background:var(--brand-white); border:1px solid #ffffff24; border-radius:20px; box-shadow:0 24px 64px #0003; }
.access-brand { display:block; width:156px; margin:0 auto 22px; }
.access-brand img { display:block; width:100%; height:auto; }
.access-card h1 { font-size:26px; font-weight:750; letter-spacing:-.04em; line-height:1.18; margin:0 0 10px; overflow-wrap:anywhere; }
.access-intro { color:#475569; font-size:14px; margin:0 0 20px; }
.access-card p:not([class]) { color:#475569; font-size:14px; }
.access-form { display:grid; gap:14px; }
.access-form label { display:block; min-width:0; font-size:13px; font-weight:650; }
.access-form input:not([type=checkbox]):not([type=hidden]) { display:block; width:100%; min-width:0; min-height:46px; margin-top:6px; border:1px solid #a7b4c4; border-radius:8px; background:#fff; padding:10px 12px; color:var(--brand-navy); font:inherit; font-size:16px; }
.access-form input:focus { border-color:var(--brand-orange); }
.access-form input:-webkit-autofill { -webkit-text-fill-color:var(--brand-navy); -webkit-box-shadow:0 0 0 1000px #fff inset; caret-color:var(--brand-navy); }
.access-form input[aria-invalid=true] { border-color:#b4232b; }
.access-card a { color:var(--brand-navy); font-weight:650; text-underline-offset:3px; }
.access-button { width:100%; min-height:48px; display:flex; align-items:center; justify-content:center; gap:14px; margin:0; padding:12px 16px; border:1px solid transparent; border-radius:8px; background:var(--brand-orange); color:var(--brand-navy); text-decoration:none; font:inherit; font-size:14px; font-weight:750; cursor:pointer; transition:background .15s ease; }
.access-button:hover { background:#fb923c; }
:focus-visible { outline:3px solid #1761a7; outline-offset:3px; }
.access-form .check-row { display:flex; align-items:flex-start; gap:10px; font-size:13px; font-weight:500; cursor:pointer; padding:4px 0; }
.check-row input { width:20px; height:20px; flex:0 0 20px; margin:1px 0 0; accent-color:var(--brand-orange); }
.check-row small { display:block; font-size:11px; color:#526176; margin-top:2px; }
.access-links { font-size:13px; text-align:center; color:#475569; margin:18px 0 0; }
.access-footer { text-align:center; margin:18px 0 0; color:#cbd5e1; font-size:11px; }
.access-footer span { display:block; color:var(--brand-gray); font-size:10px; margin-top:4px; letter-spacing:.08em; }
.form-error,.flash { border:1px solid #dba6aa; padding:12px; border-radius:8px; background:#fff0f0; color:#8d2227; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.access-error .access-shell { width:min(580px,100%); }
.access-error .access-brand { margin-left:0; }
.access-eyebrow { font-size:12px; color:#a33e07; font-weight:750; letter-spacing:.1em; margin:0 0 12px; }
.access-actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top:24px; }
.access-actions .access-button { width:auto; flex:1 1 190px; }
.access-secondary { display:flex; align-items:center; justify-content:center; border:1px solid #a7b4c4; border-radius:8px; min-height:48px; padding:12px 16px; text-decoration:none; font-size:14px; }
.access-note { font-size:12px; margin:24px 0 0; padding-top:18px; border-top:1px solid #dce3ec; color:#526176; }
.key,.code { background:#e9eef4; border:1px solid #cbd5e1; border-radius:8px; padding:12px; font-family:monospace; overflow-wrap:anywhere; user-select:all; }
.codes { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; margin:20px 0; font-size:13px; }
.warning { padding:12px; border:1px solid #f6b37f; border-radius:8px; background:#fff7ed; color:#9a3a0a; font-size:13px; margin-bottom:18px; }
.hint { font-size:12px; color:#526176; margin-top:16px; }
@media (max-width:520px) { body.access-page { padding:20px 16px; } .access-card { padding:24px 20px; border-radius:16px; } .access-card h1 { font-size:24px; } .access-brand { width:144px; margin-bottom:18px; } }
@media (max-width:350px) { body.access-page { padding:16px 12px; } .access-card { padding:22px 16px; } .codes { grid-template-columns:1fr; } .access-actions { flex-direction:column; align-items:stretch; } .access-actions .access-button { flex:auto; } }
@media (prefers-reduced-motion:reduce) { .access-button { transition:none; } }
@media print { html,body.access-page { background:white; } .access-card { border:1px solid #94a3b8; box-shadow:none; } .access-footer { color:#475569; } }
