/* === REGISTER — basert på Login-malen, 2-kolonne layout, kompakt ===
   Flyttet ut av Register.cshtml (ingen inline <style>, jf. CLAUDE.md §8). */
.reg-wrap { display:grid; grid-template-columns:1fr 1fr; gap:16px; max-width:1100px; margin:0 auto; padding:24px 20px 32px; align-items:start; background:var(--landing-bg); }

/* Felles kort-styling — bruker samme variabler som Login */
.reg-card { width:100%; border-radius:14px; padding:20px 24px; backdrop-filter:blur(20px); }

/* Lys modus */
:root:not([data-theme="dark"]) .reg-card,
[data-theme="light"] .reg-card { background:#ffffff; border:1px solid #e2e8f0; color:#1e293b; box-shadow:0 8px 32px rgba(0,0,0,.08); }
:root:not([data-theme="dark"]) .lc-title,
[data-theme="light"] .lc-title { color:#1e293b; }
:root:not([data-theme="dark"]) .lc-label,
[data-theme="light"] .lc-label { color:#334155; }
:root:not([data-theme="dark"]) .lc-input,
:root:not([data-theme="dark"]) .lc-select,
[data-theme="light"] .lc-input,
[data-theme="light"] .lc-select { background:#f8fafc; border-color:#e2e8f0; color:#1e293b; -webkit-text-fill-color:#1e293b; }
:root:not([data-theme="dark"]) .lc-input::placeholder,
[data-theme="light"] .lc-input::placeholder { color:#94a3b8; -webkit-text-fill-color:#94a3b8; }
:root:not([data-theme="dark"]) .lc-brand-text,
[data-theme="light"] .lc-brand-text { color:#1e293b; }
:root:not([data-theme="dark"]) .reg-benefits-title,
[data-theme="light"] .reg-benefits-title { color:#1e293b; }
:root:not([data-theme="dark"]) .reg-benefit-text,
[data-theme="light"] .reg-benefit-text { color:#334155; }
:root:not([data-theme="dark"]) .lc-terms,
:root:not([data-theme="dark"]) .lc-footer-link,
[data-theme="light"] .lc-terms,
[data-theme="light"] .lc-footer-link { color:#64748b; }
:root:not([data-theme="dark"]) .lexi-fp-note,
[data-theme="light"] .lexi-fp-note { color:#64748b; }

/* INVERTERT BENEFITS-PANEL — venstre side speiler motsatt tema for visuell kontrast.
   Lys modus: benefits-kortet ser mørkt ut.
   Mørk modus: benefits-kortet ser lyst ut. */
:root:not([data-theme="dark"]) .reg-benefits,
[data-theme="light"] .reg-benefits { background:#1e293b; border:1px solid #334155; color:#E2E8F0; box-shadow:0 8px 32px rgba(0,0,0,.25); }
:root:not([data-theme="dark"]) .reg-benefits .reg-benefits-title,
[data-theme="light"] .reg-benefits .reg-benefits-title { color:#E2E8F0; }
:root:not([data-theme="dark"]) .reg-benefits .reg-benefit-text,
[data-theme="light"] .reg-benefits .reg-benefit-text { color:#cbd5e1; }

/* Mørk modus */
[data-theme="dark"] .reg-card { background:#1e293b; border:1px solid #334155; color:#E2E8F0; box-shadow:0 8px 32px rgba(0,0,0,.4); }
[data-theme="dark"] .reg-benefits { background:#ffffff; border:1px solid #e2e8f0; color:#1e293b; box-shadow:0 8px 32px rgba(0,0,0,.25); }
[data-theme="dark"] .reg-benefits .reg-benefits-title { color:#1e293b; }
[data-theme="dark"] .reg-benefits .reg-benefit-text { color:#334155; }
[data-theme="dark"] .lc-title { color:#E2E8F0; }
[data-theme="dark"] .lc-label { color:#e2e8f0; }
[data-theme="dark"] .lc-input,
[data-theme="dark"] .lc-select { background:#0A0A0F; border-color:#334155; color:#E2E8F0; -webkit-text-fill-color:#E2E8F0; }
[data-theme="dark"] .lc-input::placeholder { color:#94a3b8; -webkit-text-fill-color:#94a3b8; }
[data-theme="dark"] .lc-input:-webkit-autofill,
[data-theme="dark"] .lc-input:-webkit-autofill:hover,
[data-theme="dark"] .lc-input:-webkit-autofill:focus,
[data-theme="dark"] .lc-select:-webkit-autofill,
[data-theme="dark"] .lc-select:-webkit-autofill:hover,
[data-theme="dark"] .lc-select:-webkit-autofill:focus { -webkit-text-fill-color:#E2E8F0; -webkit-box-shadow:0 0 0 1000px #0A0A0F inset; border-color:#334155; }
/* Ekstra sikring: mørk select uansett autofill-tilstand i mørk modus */
[data-theme="dark"] select.lc-select { background:#0A0A0F !important; color:#E2E8F0 !important; }
[data-theme="dark"] select.lc-select option { background:#0A0A0F; color:#E2E8F0; }
[data-theme="dark"] .lc-brand-text { color:#E2E8F0; }
[data-theme="dark"] .reg-benefits-title { color:#E2E8F0; }
[data-theme="dark"] .reg-benefit-text { color:#cbd5e1; }
[data-theme="dark"] .lc-terms,
[data-theme="dark"] .lc-footer-link { color:#94a3b8; }
[data-theme="dark"] .lexi-fp-note { color:#64748b; }

/* Brand */
.lc-brand { display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:6px; text-decoration:none; }
.lc-brand-icon { width:28px; height:28px; background:var(--accent); border-radius:6px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:0.95rem; font-family:'Oswald',sans-serif; }
.lc-brand-text { font-family:'Oswald',sans-serif; font-size:1.05rem; font-weight:700; text-transform:uppercase; letter-spacing:0.03em; }
.lc-brand-text .mark { color:var(--accent); }
.lc-title { text-align:center; font-family:'Oswald',sans-serif; font-size:0.78rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:14px; }

/* Form-elementer — kompakt */
.lc-error { background:rgba(239,68,68,.12); color:#ef4444; padding:6px 10px; border-radius:6px; font-size:0.8rem; margin-bottom:10px; text-align:center; }
.lc-field { margin-bottom:9px; }
.lc-label { display:block; font-family:'Oswald',sans-serif; font-size:0.7rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:3px; }
.lc-input, .lc-select { width:100%; padding:7px 10px; border-radius:6px; font-size:0.85rem; box-sizing:border-box; border-style:solid; border-width:1px; font-family:inherit; line-height:1.3; }
.lc-input:focus, .lc-select:focus { outline:2px solid var(--accent); outline-offset:-1px; border-color:var(--accent); }
.lc-required { color:#ef4444; margin-left:2px; font-weight:700; }
.lc-required-note { font-size:0.72rem; text-align:center; margin:-4px 0 10px; opacity:.85; }
.lc-required-note .lc-required { margin:0 1px; }
.lc-input.is-invalid, .lc-select.is-invalid { border-color:#ef4444 !important; box-shadow:0 0 0 1px #ef4444 inset; }
.lc-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.lc-row-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
.lc-pw-wrap { position:relative; }
.lc-pw-wrap .lc-input { padding-right:32px; }
.lc-pw-toggle { position:absolute; right:6px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; padding:2px; display:flex; color:inherit; }
.lc-pw-toggle svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; opacity:.6; }
.lc-pw-toggle:hover svg { opacity:1; color:var(--accent); }
.lc-field-error { display:block; color:#ef4444; font-size:0.72rem; margin-top:2px; }

/* Submit-knapp — alltid blå i begge modus */
.lc-submit-btn { width:100%; padding:10px; background:#3b82f6; color:#fff; border:none; border-radius:8px; font-family:'Oswald',sans-serif; font-size:0.95rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; box-shadow:0 4px 14px rgba(59,130,246,.35); transition:all .2s ease; margin-top:6px; }
.lc-submit-btn:hover { background:#3b82f6; box-shadow:0 6px 20px rgba(59,130,246,.5); transform:translateY(-1px); }
.lc-submit-btn:active { background:#3b82f6; transform:translateY(0); box-shadow:0 2px 8px rgba(59,130,246,.3); }
[data-theme="dark"] .lc-submit-btn,
[data-theme="dark"] .lc-submit-btn:hover,
[data-theme="dark"] .lc-submit-btn:active { background:#3b82f6; }

/* Footer-links — kompakt */
.lc-terms { font-size:0.7rem; text-align:center; margin-top:10px; line-height:1.4; }
.lc-terms a { color:var(--accent); text-decoration:none; }
.lc-terms a:hover { text-decoration:underline; }
.lc-footer-link { text-align:center; margin-top:8px; font-size:0.78rem; }
.lc-footer-link a { color:var(--accent); text-decoration:none; font-weight:600; }
.lc-footer-link a:hover { text-decoration:underline; }
.lexi-fp-note { text-align:center; font-size:0.65rem; margin-top:6px; line-height:1.3; }

/* Benefits-panelet (venstre) — kompakt */
.reg-benefits { width:100%; }
.reg-benefits-title { font-family:'Oswald',sans-serif; font-size:1rem; font-weight:700; text-transform:uppercase; letter-spacing:0.02em; margin-bottom:14px; }
.reg-benefit { display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; }
.reg-benefit-icon { flex-shrink:0; width:22px; height:22px; background:rgba(96,165,250,.15); border-radius:50%; display:flex; align-items:center; justify-content:center; margin-top:1px; }
.reg-benefit-icon svg { width:13px; height:13px; stroke:var(--accent); fill:none; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.reg-benefit-text { font-size:0.82rem; line-height:1.4; }
.reg-benefit-text strong { color:var(--accent); }

/* Fingerprint-indikator */
.lexi-fp-computing .lc-submit-btn { opacity:0.6; cursor:wait; }
.lexi-fp-computing .lc-submit-btn::after {
    content:""; display:inline-block; width:14px; height:14px; margin-left:8px;
    border:2px solid rgba(255,255,255,0.3); border-top-color:#fff; border-radius:50%;
    animation: lexi-fp-spin 0.7s linear infinite; vertical-align:middle;
}
@keyframes lexi-fp-spin { to { transform: rotate(360deg); } }

/* Agentkode-toggle (<details>) */
.lc-agent-toggle { cursor:pointer; list-style:none; display:inline-flex; align-items:center; gap:7px; font-size:.9rem; font-weight:600; color:#6366f1; user-select:none; padding:4px 0; }
.lc-agent-toggle::-webkit-details-marker { display:none; }
.lc-agent-sign { display:inline-flex; width:16px; height:16px; align-items:center; justify-content:center; border:1px solid #6366f1; border-radius:50%; font-size:.8rem; line-height:1; }
#regAgentDetails .lc-agent-sign::before { content:"+"; }
#regAgentDetails[open] .lc-agent-sign::before { content:"\2212"; }

/* Responsivt: 1-kolonne på små skjermer */
@media (max-width:768px) {
    .reg-wrap { grid-template-columns:1fr; padding:16px 12px 24px; }
    .reg-card { padding:18px 18px; }
    .lc-row-2, .lc-row-3 { grid-template-columns:1fr; }
}
