:root { color-scheme:light; font-family:Inter,system-ui,sans-serif; color:#1e293b; background:#f8fafc; }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; }
button,input { font:inherit; }
button { cursor:pointer; }
a { color:inherit; }
.auth-portal-shell { display:grid; grid-template-columns:minmax(0,48%) minmax(0,52%); min-height:100vh; }
.auth-portal-main { display:flex; flex-direction:column; min-width:0; min-height:100vh; padding:2rem clamp(1.5rem,5.1vw,5rem) 1.6rem; background:#fff; }
.auth-portal-header,.auth-portal-content,.auth-portal-footer { width:min(100%,27.5rem); margin-left:auto; margin-right:auto; }
.auth-portal-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.auth-portal-brand { display:inline-flex; align-items:center; gap:.55rem; text-decoration:none; white-space:nowrap; }
.auth-portal-brand img { display:block; width:2.55rem; height:2.55rem; border-radius:.7rem; object-fit:cover; }
.auth-portal-brand span { font-family:'Plus Jakarta Sans',Inter,sans-serif; font-size:1.22rem; font-weight:800; letter-spacing:-.045em; color:#2563eb; background:linear-gradient(90deg,#2563eb 0%,#1786b1 55%,#0d9488 100%); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.auth-portal-status { display:inline-flex; align-items:center; gap:.4rem; padding:.38rem .65rem; border:1px solid #e2e8f0; border-radius:999px; background:#f8fafc; color:#64748b; font-size:.68rem; font-weight:600; white-space:nowrap; }
.auth-portal-status i { width:.44rem; height:.44rem; border-radius:50%; background:#10b981; }
.auth-portal-content { margin-top:auto; margin-bottom:auto; padding:2.5rem 0; }
.auth-portal-content:has(.auth-role-tabs) { padding:1.5rem; border:1px solid #e7edf5; border-radius:1rem; background:#fff; box-shadow:0 12px 36px rgba(15,23,42,.055),0 2px 8px rgba(15,23,42,.025); }
@media(min-width:521px) { .auth-portal-content:has(.auth-role-tabs) { width:min(100%,30rem); } }
.auth-eyebrow { display:inline-flex; align-items:center; gap:.45rem; margin:0 0 .65rem; color:#2563eb; font-size:.7rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.auth-eyebrow::before { width:.42rem; height:.42rem; border-radius:50%; background:#10b981; content:''; }
.auth-title { margin:0; color:#1e293b; font-family:'Plus Jakarta Sans',Inter,sans-serif; font-size:clamp(1.8rem,2.7vw,2.05rem); font-weight:800; letter-spacing:-.045em; line-height:1.2; }
.auth-title em { color:#2563eb; font-style:normal; background:linear-gradient(90deg,#2563eb 0%,#1786b1 55%,#0d9488 100%); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.auth-description { margin:.65rem 0 1.55rem; color:#64748b; font-size:.86rem; line-height:1.65; }
.auth-role-tabs { display:grid; grid-template-columns:1fr 1fr; gap:.25rem; margin:0 0 1.5rem; padding:.25rem; border:1px solid #e2e8f0; border-radius:.75rem; background:#f8fafc; }
.auth-role-tabs a { display:flex; align-items:center; justify-content:center; gap:.4rem; min-height:2.3rem; border-radius:.55rem; color:#64748b; font-size:.77rem; font-weight:700; text-decoration:none; }
.auth-role-tabs a:hover { color:#1d4ed8; }
.auth-role-tabs a.is-active { border:1px solid #e2e8f0; background:#fff; color:#1e293b; box-shadow:0 1px 3px rgba(15,23,42,.06); }
.auth-role-tabs i { color:#2563eb; font-size:.95rem; }
.auth-form { display:grid; gap:1.05rem; }
.auth-form-field { display:grid; gap:.42rem; }
.auth-field-head { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.auth-form label,.auth-field-head label { color:#334155; font-size:.71rem; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }
.auth-input-wrap { position:relative; }
.auth-input-wrap > i { position:absolute; left:.85rem; top:50%; transform:translateY(-50%); color:#94a3b8; font-size:1.1rem; pointer-events:none; }
.auth-form input:not([type='checkbox']) { width:100%; height:2.8rem; padding:.65rem .85rem; border:1px solid #cbd5e1; border-radius:.7rem; background:#fff; color:#1e293b; font-size:.84rem; outline:none; transition:border-color .15s,box-shadow .15s; }
.auth-input-wrap input:not([type='checkbox']) { padding-left:2.55rem; }
.auth-input-wrap:has(.auth-password-toggle) input { padding-right:2.6rem; }
.auth-form input:not([type='checkbox']):focus { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.auth-form input::placeholder { color:#94a3b8; }
.auth-form input[type='checkbox'] { width:1rem; height:1rem; margin:0; accent-color:#2563eb; }
.auth-password-toggle { position:absolute; top:50%; right:.45rem; transform:translateY(-50%); display:grid; place-items:center; width:2rem; height:2rem; border:0; border-radius:.45rem; background:transparent; color:#64748b; font-size:1rem; }
.auth-password-toggle:hover { background:#f1f5f9; color:#1e293b; }
.auth-text-link { border:0; background:transparent; color:#2563eb; font-size:.76rem; font-weight:700; text-decoration:none; }
.auth-text-link:hover { color:#1d4ed8; text-decoration:underline; }
.auth-form-row { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.auth-checkbox-label { display:inline-flex; align-items:center; gap:.5rem; color:#64748b!important; font-size:.77rem!important; font-weight:550!important; letter-spacing:0!important; text-transform:none!important; cursor:pointer; }
.auth-security-note { display:inline-flex; align-items:center; gap:.3rem; color:#64748b; font-size:.7rem; white-space:nowrap; }
.auth-security-note i { color:#0d9488; font-size:.9rem; }
.auth-primary-button { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; width:100%; min-height:2.9rem; padding:.65rem 1rem; border:0; border-radius:.7rem; background:linear-gradient(90deg,#2563eb,#0ea5e9 52%,#10b981); color:#fff; font-size:.84rem; font-weight:700; box-shadow:0 4px 12px rgba(37,99,235,.16); }
.auth-primary-button:hover { background:linear-gradient(90deg,#1d4ed8,#0284c7 52%,#059669); }
.auth-primary-button:disabled { opacity:.65; cursor:wait; }
.auth-primary-button.is-loading { opacity:.9; cursor:wait; }
.is-loading::before { display:inline-block; width:.85rem; height:.85rem; margin-right:.4rem; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; vertical-align:-.15rem; animation:auth-button-spin .7s linear infinite; content:''; }
.auth-primary-button.is-loading::before { border-top-color:rgba(255,255,255,.45); border-left-color:rgba(255,255,255,.45); border-bottom-color:rgba(255,255,255,.45); }
@keyframes auth-button-spin { to { transform:rotate(360deg); } }
.auth-help-card { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-top:1.3rem; padding:.8rem; border:1px solid #e2e8f0; border-radius:.75rem; background:#f8fafc; }
.auth-help-card > i { display:grid; place-items:center; width:2rem; height:2rem; flex:none; border:1px solid #e2e8f0; border-radius:.5rem; background:#fff; color:#2563eb; font-size:1rem; }
.auth-help-card div { min-width:0; flex:1; }
.auth-help-card strong { display:block; color:#1e293b; font-size:.75rem; }
.auth-help-card span { display:block; margin-top:.12rem; color:#64748b; font-size:.68rem; }
.auth-help-card a { padding:.38rem .6rem; border:1px solid #e2e8f0; border-radius:.5rem; background:#fff; color:#1e293b; font-size:.72rem; font-weight:700; text-decoration:none; }
.auth-help-card a:hover { border-color:#bfdbfe; color:#1d4ed8; }
.auth-apply-line { margin:1.1rem 0 0; color:#64748b; font-size:.76rem; text-align:center; }
.auth-apply-line button { padding:0; border:0; background:transparent; color:#2563eb; font-size:inherit; font-weight:700; }
.auth-apply-line button:hover { text-decoration:underline; }
.auth-apply-line a { color:#2563eb; font-weight:700; text-decoration:none; }
.auth-apply-line a:hover { text-decoration:underline; }
.auth-alert { margin:0 0 1rem; padding:.75rem .85rem; border:1px solid #fecaca; border-radius:.7rem; background:#fef2f2; color:#b91c1c; font-size:.78rem; line-height:1.5; }
.auth-alert-success { border-color:#a7f3d0; background:#ecfdf5; color:#047857; }
.auth-caps-warning { display:none; align-items:center; gap:.35rem; margin-top:.35rem; padding:.3rem .5rem; border:1px solid #fde68a; border-radius:.45rem; background:#fffbeb; color:#b45309; font-size:.7rem; }
.auth-caps-warning.is-visible { display:flex; }
.auth-portal-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:.7rem; row-gap:.45rem; color:#94a3b8; font-size:.66rem; }
.auth-portal-footer > span:first-child { grid-column:1; grid-row:1; }
.auth-legal-links { display:inline-flex; grid-column:2; grid-row:1; align-items:center; justify-self:end; gap:.4rem; white-space:nowrap; }
.auth-legal-links a { color:#64748b; text-decoration:none; }
.auth-legal-links a:hover { color:#2563eb; text-decoration:underline; }
.auth-portal-footer > span:last-child { display:inline-flex; grid-column:1; grid-row:2; align-items:center; gap:.25rem; }
.auth-portal-showcase { position:relative; display:flex; flex-direction:column; justify-content:space-between; min-width:0; overflow:hidden; padding:clamp(2rem,4vw,4rem); background:linear-gradient(to right,rgba(255,255,255,.075) 1px,transparent 1px),linear-gradient(to bottom,rgba(255,255,255,.075) 1px,transparent 1px),linear-gradient(135deg,#2563eb,#0ea5e9 52%,#10b981); background-size:38px 38px,38px 38px,100% 100%; color:#fff; }
.auth-portal-showcase::before,.auth-portal-showcase::after { position:absolute; width:25rem; height:25rem; border-radius:50%; background:rgba(255,255,255,.08); filter:blur(48px); content:''; pointer-events:none; }
.auth-portal-showcase::before { top:-12rem; right:-10rem; }
.auth-portal-showcase::after { bottom:-14rem; left:-10rem; }
.auth-showcase-top,.auth-showcase-bottom { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:1rem; font-size:.74rem; font-weight:650; }
.auth-showcase-top span { display:inline-flex; align-items:center; gap:.4rem; padding:.45rem .85rem; border:1px solid rgba(255,255,255,.25); border-radius:999px; background:rgba(255,255,255,.14); backdrop-filter:blur(8px); }
.auth-showcase-top i,.auth-showcase-bottom i { font-size:1rem; }
.auth-showcase-content { position:relative; z-index:1; width:min(100%,34rem); margin:auto; padding:3rem 0; }
.auth-showcase-content h2 { margin:0; color:#fff; font-family:'Plus Jakarta Sans',Inter,sans-serif; font-size:clamp(2rem,3vw,2.65rem); font-weight:800; letter-spacing:-.045em; line-height:1.14; }
.auth-showcase-content > p { margin:.9rem 0 1.6rem; color:rgba(255,255,255,.9); font-size:.94rem; line-height:1.6; }
.auth-showcase-metrics { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; margin-bottom:.75rem; }
.auth-showcase-metrics > div,.auth-showcase-feature { border:1px solid rgba(255,255,255,.25); border-radius:1rem; background:rgba(255,255,255,.14); backdrop-filter:blur(10px); }
.auth-showcase-metrics > div { padding:1rem 1.1rem; }
.auth-showcase-metrics strong { display:block; font-family:'Plus Jakarta Sans',Inter,sans-serif; font-size:1.5rem; }
.auth-showcase-metrics span { display:block; margin-top:.25rem; color:rgba(255,255,255,.88); font-size:.75rem; }
.auth-showcase-feature { display:flex; align-items:center; gap:.8rem; margin-top:.7rem; padding:.85rem 1rem; }
.auth-showcase-feature > i { display:grid; place-items:center; width:2.15rem; height:2.15rem; flex:none; border:1px solid rgba(255,255,255,.25); border-radius:.6rem; background:rgba(255,255,255,.12); font-size:1.2rem; }
.auth-showcase-feature strong { display:block; font-size:.8rem; }
.auth-showcase-feature span { display:block; margin-top:.2rem; color:rgba(255,255,255,.8); font-size:.7rem; line-height:1.35; }
.auth-showcase-bottom { color:rgba(255,255,255,.9); }
.auth-showcase-bottom span:first-child { display:flex; align-items:center; gap:.4rem; }
.auth-apply-dialog { width:min(100% - 2rem,24rem); padding:1.5rem; border:1px solid #e2e8f0; border-radius:1rem; background:#fff; box-shadow:0 20px 60px rgba(15,23,42,.2); text-align:center; }
.auth-apply-dialog::backdrop { background:rgba(15,23,42,.55); }
.auth-apply-dialog h2 { margin:.7rem 0 .35rem; color:#0f172a; font-family:'Plus Jakarta Sans',Inter,sans-serif; font-size:1.1rem; }
.auth-apply-dialog p { margin:0 0 1.2rem; color:#64748b; font-size:.8rem; line-height:1.5; }
.auth-apply-icon { display:grid; place-items:center; width:2.7rem; height:2.7rem; margin:auto; border-radius:.7rem; background:#eff6ff; color:#2563eb; font-size:1.35rem; }
.auth-otp-input { text-align:center; font-family:ui-monospace,SFMono-Regular,monospace!important; font-size:1.2rem!important; font-weight:700; letter-spacing:.4em; }
@media(max-width:980px) { .auth-portal-shell { grid-template-columns:1fr; } .auth-portal-showcase { display:none; } .auth-portal-main { padding:1.5rem; } }
@media(min-width:981px) and (max-height:850px) {
    .auth-portal-main { padding-top:1.25rem; padding-bottom:1.1rem; }
    .auth-portal-content:has(.auth-role-tabs) { padding:1.15rem 1.5rem; }
    .auth-portal-content:has(.auth-role-tabs) .auth-description { margin-bottom:1rem; }
    .auth-portal-content:has(.auth-role-tabs) .auth-role-tabs { margin-bottom:1rem; }
    .auth-portal-content:has(.auth-role-tabs) .auth-form { gap:.8rem; }
    .auth-portal-content:has(.auth-role-tabs) .auth-help-card { margin-top:.9rem; }
    .auth-portal-content:has(.auth-role-tabs) .auth-apply-line { margin-top:.75rem; }
    .auth-portal-showcase { padding:1.5rem clamp(2rem,4vw,4rem); }
    .auth-showcase-content { padding:1rem 0; }
    .auth-showcase-content h2 { font-size:clamp(1.85rem,2.7vw,2.35rem); }
    .auth-showcase-content > p { margin:.65rem 0 1rem; }
    .auth-showcase-metrics > div { padding:.7rem 1rem; }
    .auth-showcase-feature { margin-top:.5rem; padding:.65rem .9rem; }
}
@media(max-width:520px) { .auth-portal-main { padding:1.1rem; background:#f8fafc; } .auth-portal-content { margin:2.25rem auto; padding:1.4rem 1.2rem; border:1px solid #e2e8f0; border-radius:1rem; background:#fff; } .auth-portal-status { font-size:0; gap:0; padding:.45rem; } .auth-portal-status i { width:.5rem; height:.5rem; } .auth-showcase-metrics { grid-template-columns:1fr; } }
@media(max-width:380px) { .auth-portal-footer { grid-template-columns:1fr; text-align:center; } .auth-portal-footer > span:first-child,.auth-legal-links,.auth-portal-footer > span:last-child { grid-column:1; grid-row:auto; justify-self:center; } }
