:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17202a;
    background: #f4f6f8;
    line-height: 1.5
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px
}

.auth-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(20, 30, 40, .09)
}

.brand-panel {
    padding: 64px;
    background: #17202a;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 560px
}

.brand-panel h1 {
    font-size: clamp(42px, 6vw, 74px);
    line-height: .92;
    letter-spacing: -.055em;
    margin: 14px 0 24px;
    font-weight: 500
}

.brand-panel strong {
    font-weight: 800
}

.brand-panel p {
    max-width: 440px;
    color: #b9c0c7
}

.login-card {
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px
}

.login-card h2 {
    font-size: 34px;
    letter-spacing: -.035em;
    margin: 8px 0 4px
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 11px;
    font-weight: 800;
    color: #67727e
}

.brand-panel .eyebrow {
    color: #c9d0d7
}

.muted {
    color: #7c8792
}

.login-card form {
    display: grid;
    gap: 18px
}

.login-card label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700
}

.login-card input {
    width: 100%;
    border: 1px solid #d9dee3;
    border-radius: 10px;
    padding: 13px 14px;
    font: inherit;
    outline: none
}

.login-card input:focus {
    border-color: #17202a;
    box-shadow: 0 0 0 3px rgba(23, 32, 42, .08)
}

button {
    border: 0;
    border-radius: 10px;
    padding: 14px 18px;
    background: #17202a;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff2f1;
    color: #9d2722;
    border: 1px solid #ffd2cf;
    font-size: 14px
}

.text-link,
a {
    color: inherit
}

.text-link {
    font-size: 14px
}

.topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e3e6e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 max(24px, calc((100vw - 1120px)/2))
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 56px auto
}

.hero-card {
    background: #fff;
    border: 1px solid #e4e7ea;
    border-radius: 18px;
    padding: 42px
}

.hero-card h1 {
    font-size: 42px;
    letter-spacing: -.04em;
    margin: 8px 0 14px
}

.hero-card p {
    max-width: 760px;
    color: #66717c
}

@media(max-width:760px) {
    .auth-page {
        padding: 16px
    }

    .auth-shell {
        grid-template-columns: 1fr
    }

    .brand-panel {
        min-height: 230px;
        padding: 32px
    }

    .brand-panel h1 {
        font-size: 44px
    }

    .login-card {
        padding: 34px
    }

    .topbar {
        padding: 0 18px;
        font-size: 13px
    }

    .container {
        width: calc(100% - 32px);
        margin: 32px auto
    }

    .hero-card {
        padding: 28px
    }

    .hero-card h1 {
        font-size: 32px
    }
}

/* M32 — lightweight public/student surface */
:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fa;
    color: #172b3d
}

.auth-shell,
.hero-card {
    box-shadow: none !important;
    border-color: #dfe6ee !important
}

.auth-shell {
    border-radius: 14px !important
}

.brand-panel {
    background: #16324f !important;
    min-height: 500px !important;
    padding: 48px !important
}

.brand-panel h1 {
    letter-spacing: -.035em !important
}

.login-card {
    padding: 48px !important
}

.login-card input,
button {
    border-radius: 8px !important
}

.topbar {
    box-shadow: none !important
}

.hero-card {
    border-radius: 12px !important;
    padding: 30px !important
}

.container {
    margin: 34px auto !important
}

@media(max-width:760px) {
    .brand-panel {
        min-height: 190px !important;
        padding: 28px !important
    }

    .login-card {
        padding: 28px !important
    }

    .hero-card {
        padding: 22px !important
    }
}


/* M74 — generic public surface theme hooks. */
body[data-theme] {
    --theme-primary: #2563eb;
    --theme-primary-hover: #1d4ed8;
    --theme-soft: #eff6ff
}

body[data-theme="emerald"] {
    --theme-primary: #059669;
    --theme-primary-hover: #047857;
    --theme-soft: #ecfdf5
}

body[data-theme="violet"] {
    --theme-primary: #7c3aed;
    --theme-primary-hover: #6d28d9;
    --theme-soft: #f5f3ff
}

body[data-theme="coral"] {
    --theme-primary: #e85d4a;
    --theme-primary-hover: #cf4938;
    --theme-soft: #fff3f0
}

body[data-theme="sunset"] {
    --theme-primary: #ea580c;
    --theme-primary-hover: #c2410c;
    --theme-soft: #fff7ed
}

body[data-theme="cyan"] {
    --theme-primary: #0891b2;
    --theme-primary-hover: #0e7490;
    --theme-soft: #ecfeff
}

body[data-theme="berry"] {
    --theme-primary: #db2777;
    --theme-primary-hover: #be185d;
    --theme-soft: #fdf2f8
}

body[data-theme] button,
body[data-theme] .btn {
    background: var(--theme-primary);
    border-color: var(--theme-primary)
}

body[data-theme] button:hover,
body[data-theme] .btn:hover {
    background: var(--theme-primary-hover)
}

body[data-theme] input:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: none !important
}

/* M75 — decorative eyebrow accent follows selected theme. */
body[data-theme] .eyebrow {
    color: var(--theme-primary) !important
}