:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #07111f;
    color: #f8fafc;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #173a61 0, transparent 42%), linear-gradient(145deg, #07111f, #0b1f37 58%, #07111f); }
a { color: inherit; }
button { font: inherit; }

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 7% 12%, rgba(44, 153, 172, .18), transparent 27%),
        radial-gradient(circle at 92% 87%, rgba(224, 170, 72, .12), transparent 24%),
        #071422;
}
.login-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .13;
    background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(135deg, black, transparent 70%);
}
.login-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 44px 0 24px;
    display: grid;
    align-content: center;
    gap: 22px;
}
.login-frame {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    overflow: hidden;
    border: 1px solid rgba(151, 184, 207, .22);
    border-radius: 34px;
    background: #0b1b2d;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
}
.brand-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 680px;
    padding: 48px 54px;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(145deg, rgba(20, 98, 122, .2), transparent 48%),
        linear-gradient(155deg, #0f334a, #0a2539 62%, #0d2032);
}
.brand-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 470px;
    height: 470px;
    right: -195px;
    bottom: -205px;
    border-radius: 50%;
    border: 1px solid rgba(118, 215, 222, .22);
    box-shadow: 0 0 0 48px rgba(118, 215, 222, .035), 0 0 0 96px rgba(118, 215, 222, .025);
}
.brand-topline {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #cfe7ec;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.brand-emblem {
    width: 50px;
    height: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 15px;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 0 24px rgba(255,255,255,.04);
}
.brand-emblem b, .brand-emblem i { font-size: 15px; font-style: normal; }
.brand-emblem b { color: #7ed9e0; }
.brand-emblem i { height: 100%; width: 100%; display: grid; place-items: center; background: #e9b653; color: #10273a; }
.brand-message { position: relative; z-index: 2; margin-top: 82px; max-width: 500px; }
.brand-kicker { margin: 0 0 14px; color: #77d6dc; font-size: 12px; font-weight: 800; letter-spacing: .24em; }
.brand-message h1 { margin: 0; font-size: clamp(56px, 6vw, 84px); line-height: .98; letter-spacing: -.065em; }
.brand-message > p:last-child { margin: 18px 0 0; max-width: 390px; color: #eabb5d; font-size: 18px; font-weight: 700; line-height: 1.5; }
.assessment-orbit { position: absolute; right: 28px; bottom: 88px; width: 270px; height: 270px; }
.orbit { position: absolute; inset: 0; border: 1px solid rgba(126,217,224,.22); border-radius: 50%; }
.orbit-one { transform: rotate(18deg) scaleY(.44); }
.orbit-two { transform: rotate(-38deg) scaleY(.44); }
.orbit-core {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 28px;
    background: linear-gradient(145deg, #e8b452, #f3cf7a);
    color: #0e2d42;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.orbit-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #78d7dd; box-shadow: 0 0 18px rgba(120,215,221,.7); }
.dot-one { top: 44px; left: 36px; }
.dot-two { right: 33px; bottom: 56px; background: #e8b452; box-shadow: 0 0 18px rgba(232,180,82,.65); }
.brand-footnote { margin: auto 0 0; max-width: 335px; color: #9db8c5; font-size: 13px; line-height: 1.7; }
.login-panel { padding: 48px 52px; display: flex; flex-direction: column; background: linear-gradient(160deg, #0d1e31, #091827); }
.back-link { align-self: flex-end; display: inline-flex; align-items: center; gap: 9px; color: #9eb4c5; font-size: 12px; font-weight: 650; text-decoration: none; }
.back-link:hover { color: #f3c96f; }
.login-heading { margin-top: 76px; }
.section-label { margin: 0 0 12px; color: #69cbd5; font-size: 11px; font-weight: 850; letter-spacing: .22em; }
.login-heading h2 { margin: 0; color: #f7fafc; font-size: 38px; letter-spacing: -.04em; }
.login-heading > p:last-child { margin: 14px 0 0; color: #9eb2c2; line-height: 1.65; }
.login-form { display: grid; gap: 20px; margin-top: 34px; }
.form-field { display: grid; gap: 9px; }
.form-field label { color: #dce8ef; font-size: 13px; font-weight: 720; }
.input-shell { position: relative; }
.input-shell input {
    width: 100%;
    height: 56px;
    padding: 0 54px 0 48px;
    border: 1px solid #284258;
    border-radius: 15px;
    outline: none;
    background: #0a1725;
    color: #f8fafc;
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input-shell input::placeholder { color: #60788b; }
.input-shell input:focus { border-color: #65cbd4; background: #0b1b2b; box-shadow: 0 0 0 4px rgba(101,203,212,.1); }
.field-icon { position: absolute; z-index: 1; left: 17px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: #6f8ea2; }
.field-icon svg, .password-toggle svg, .security-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle { position: absolute; right: 11px; top: 50%; width: 36px; height: 36px; transform: translateY(-50%); display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #7590a3; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { background: rgba(104,203,212,.1); color: #79d5dc; outline: none; }
.password-toggle svg { width: 19px; height: 19px; }
.login-submit { height: 58px; margin-top: 4px; padding: 0 8px 0 22px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 16px; background: linear-gradient(125deg, #58c4d1, #7cd6cf); color: #071c29; font-weight: 850; cursor: pointer; box-shadow: 0 15px 34px rgba(50,170,184,.18); transition: transform .15s ease, box-shadow .15s ease; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(50,170,184,.27); }
.login-submit:focus-visible { outline: 3px solid rgba(243,201,111,.75); outline-offset: 3px; }
.submit-arrow { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(7,28,41,.13); font-size: 22px; }
.form-alert { padding: 12px 14px; display: flex; gap: 11px; border: 1px solid rgba(251,113,133,.32); border-radius: 13px; background: rgba(159,18,57,.13); color: #fecdd3; font-size: 12px; line-height: 1.5; }
.form-alert > span { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(251,113,133,.18); font-weight: 900; }
.form-alert p { margin: 0; }
.form-alert p + p { margin-top: 3px; }
.login-security { margin-top: auto; padding-top: 34px; display: flex; align-items: center; gap: 12px; color: #718b9d; }
.security-mark { flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: rgba(105,203,213,.09); color: #68cad4; }
.login-security p { margin: 0; font-size: 11px; line-height: 1.55; }
.login-security strong { display: block; color: #a9c0cc; font-size: 12px; }
.login-footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 8px; color: #61788a; font-size: 11px; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 520px); padding: 42px; border: 1px solid rgba(148, 163, 184, .24); border-radius: 28px; background: rgba(8, 22, 40, .9); box-shadow: 0 28px 90px rgba(0, 0, 0, .4); }
.auth-card.compact { text-align: center; }
.brand-mark, .status-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(135deg, #38bdf8, #2dd4bf); color: #052037; }
.status-icon.error { margin-inline: auto; background: #fb7185; color: #450a0a; }
.eyebrow { margin: 24px 0 8px; color: #7dd3fc; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(40px, 7vw, 64px); letter-spacing: -.05em; }
.subtitle { margin: 8px 0 0; color: #fbbf24; font-weight: 700; }
.description { margin: 24px 0 0; color: #cbd5e1; line-height: 1.65; }
.role-actions { display: grid; gap: 12px; margin-top: 32px; }
.role-button { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 16px; text-decoration: none; border: 1px solid rgba(148, 163, 184, .25); transition: transform .15s ease, border-color .15s ease; }
.role-button:hover { transform: translateY(-2px); border-color: #7dd3fc; }
.role-button span { color: #cbd5e1; font-size: 13px; }
.role-button.primary { background: linear-gradient(135deg, rgba(14, 165, 233, .22), rgba(45, 212, 191, .13)); }
.role-button.secondary { background: rgba(99, 102, 241, .13); }
.role-button.single { justify-content: center; margin-top: 28px; }
.security-note { margin: 26px 0 0; color: #94a3b8; font-size: 12px; line-height: 1.55; }

.dashboard-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.dashboard-header .eyebrow { margin-top: 0; }
.dashboard-header h1 { font-size: clamp(34px, 6vw, 54px); }
.dashboard-header p:last-child { margin: 6px 0 0; color: #94a3b8; }
.logout-button { padding: 11px 18px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, .3); background: rgba(15, 23, 42, .65); color: #f8fafc; cursor: pointer; }
.welcome-panel { margin-top: 48px; padding: 30px; border-radius: 24px; border: 1px solid rgba(56, 189, 248, .22); background: linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(15, 23, 42, .72)); }
.welcome-panel p { margin: 0; color: #bae6fd; }
.welcome-panel h2 { margin: 8px 0 18px; font-size: 30px; }
.role-badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: rgba(45, 212, 191, .16); color: #99f6e4; font-size: 13px; font-weight: 700; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.module-grid article { min-height: 170px; padding: 22px; border-radius: 20px; border: 1px solid rgba(148, 163, 184, .18); background: rgba(15, 23, 42, .68); }
.module-grid article > span { color: #38bdf8; font-size: 12px; font-weight: 800; }
.module-grid h3 { margin: 22px 0 8px; }
.module-grid p { margin: 0; color: #94a3b8; line-height: 1.5; }

@media (max-width: 760px) {
    .login-shell { width: min(100% - 24px, 560px); padding: 18px 0; }
    .login-frame { min-height: auto; grid-template-columns: 1fr; border-radius: 24px; }
    .brand-stage { min-height: 245px; padding: 26px 28px; }
    .brand-topline { font-size: 10px; }
    .brand-emblem { width: 42px; height: 42px; border-radius: 13px; }
    .brand-message { margin-top: 30px; }
    .brand-message h1 { font-size: clamp(46px, 15vw, 64px); }
    .brand-message > p:last-child { margin-top: 10px; font-size: 14px; }
    .assessment-orbit { width: 180px; height: 180px; right: -40px; bottom: -48px; opacity: .7; }
    .orbit-core { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
    .brand-footnote { display: none; }
    .login-panel { min-height: 500px; padding: 28px; }
    .back-link { align-self: flex-start; }
    .login-heading { margin-top: 44px; }
    .login-heading h2 { font-size: 32px; }
    .login-security { margin-top: 32px; }
    .login-footer { display: grid; justify-content: center; text-align: center; }
    .auth-card { padding: 28px 22px; }
    .dashboard-header { align-items: center; }
    .module-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
