:root {
    color-scheme: light;
    --en206-navy: #10263f;
    --en206-navy-soft: #1b3c5e;
    --en206-orange: #ed6b25;
    --en206-orange-dark: #c94f14;
    --en206-ink: #152332;
    --en206-muted: #667789;
    --en206-line: #d8e0e8;
    --en206-panel: #ffffff;
}

html, body { min-height: 100%; margin: 0; }
body.en206-auth-page {
    background: var(--en206-navy);
    color: var(--en206-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}
body.en206-auth-page::before {
    background:
        radial-gradient(circle at 78% 22%, rgba(237, 107, 37, .24), transparent 34%),
        radial-gradient(circle at 12% 88%, rgba(66, 132, 179, .3), transparent 42%),
        linear-gradient(145deg, #0b1c31 0%, #163653 56%, #10263f 100%);
    content: "";
    inset: 0;
    position: fixed;
    z-index: -1;
}
.auth-language-selector { padding: 14px 18px; position: absolute; right: 0; top: 0; z-index: 3; }
.auth-language-selector select { background: rgba(7, 20, 35, .5); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: #fff; font: inherit; min-height: 44px; padding: 8px 10px; }
.auth-language-selector option { background: var(--en206-navy); }
.login-shell, body.en206-auth-page > .panel { align-items: center; box-sizing: border-box; display: flex; justify-content: center; min-height: 100vh; padding: 72px 24px 28px; }
.panel { background: var(--en206-panel); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; box-shadow: 0 28px 80px rgba(0,0,0,.32); box-sizing: border-box; margin: auto; padding: 34px 38px 0; width: min(980px, 100%); }
body.en206-auth-page > .panel { display: flex; flex-direction: column; max-width: 620px; padding-bottom: 34px; }
.panel-body { box-sizing: border-box; width: 100%; }
.en206-brand { align-items: center; display: flex; flex-direction: column; text-align: center; }
.en206-brand img, .logo-en206 { height: auto; max-width: 290px; width: 65%; }
.en206-brand p { color: var(--en206-muted); font-size: 17px; margin: 10px 0 0; }
.auth-content-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.08fr); margin-top: 34px; min-height: 350px; }
.auth-content-grid--single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.auth-column-divider { background: var(--en206-line); }
.auth-provider-column, .auth-entry-column { min-width: 0; }
h2.auth-column-title { color: var(--en206-navy); font-size: 21px; line-height: 1.3; margin: 4px 0 22px; }
.providers { margin: 0; }
button { font: inherit; }
button.social { background: #fff; border: 1px solid var(--en206-line); border-radius: 9px; box-shadow: 0 5px 16px rgba(16,38,63,.08); color: var(--en206-ink); cursor: pointer; margin: 0 0 14px; min-height: 54px; padding: 11px 18px; width: 100%; }
button.social:hover { border-color: var(--en206-orange); transform: translateY(-1px); }
button.social .label { align-items: center; display: grid; gap: 14px; grid-template-columns: 26px minmax(0,1fr); text-align: center; }
span.logo { background-position: center; background-repeat: no-repeat; background-size: contain; height: 25px; margin: 0; width: 25px; }
span.logo.ms { background-image: url('/images/providers/microsoft-logo.svg'); }
span.logo.goog { background-image: url('/images/providers/google-logo.svg'); }
span.logo.apple { background-image: url('/images/providers/apple-logo.svg'); }
.entry-item { box-sizing: border-box; padding: 0 0 16px; width: 100%; }
.entry-item label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 7px; }
input, .input, .input-disabled { background: #fff !important; border: 1px solid var(--en206-line); border-radius: 7px; box-shadow: 0 4px 14px rgba(16,38,63,.07); box-sizing: border-box; color: var(--en206-ink); font: inherit; height: 54px; padding: 0 16px; width: 100%; }
input:focus { border-color: var(--en206-orange); box-shadow: 0 0 0 3px rgba(237,107,37,.2); outline: none; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 58px; }
button.password-toggle { align-items: center; background: transparent; border: 0; color: var(--en206-navy); cursor: pointer; display: flex; height: 44px; justify-content: center; margin: 0; padding: 10px; position: absolute; right: 6px; top: 5px; width: 44px; }
button.password-toggle img { height: 22px; width: 22px; }
.forgot-password { align-self: flex-end; display: inline-flex; margin: -4px 0 6px; min-height: 44px; }
a { color: var(--en206-orange-dark); cursor: pointer; text-decoration: none; }
a:hover { text-decoration: underline; }
.entry form > button[type="submit"], .register-button { background: var(--en206-orange); border: 0; border-radius: 9px; box-shadow: 0 12px 28px rgba(237,107,37,.24); color: #fff; cursor: pointer; font-weight: 650; min-height: 54px; padding: 12px 20px; width: 100%; }
.entry form > button[type="submit"]:hover, .register-button:hover { background: var(--en206-orange-dark); }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid rgba(237,107,37,.48); outline-offset: 3px; }
.auth-panel-footer, .register { align-items: center; display: flex; justify-content: center; }
.auth-panel-footer { border-top: 1px solid var(--en206-line); margin: 28px -38px 0; min-height: 84px; padding: 18px 38px; }
.auth-panel-footer p, .register p { margin: 0; }
.auth-panel-footer .sign-up, .register .sign-up { margin-left: 18px; }
.alert { border: 1px solid transparent; border-radius: 8px; margin: 22px 0 0; padding: 13px 15px; }
.alert-success { background: #e9f8ef; border-color: #a5dbc0; color: #14532d; }
.alert-warning { background: #fff7df; border-color: #efd387; color: #654c00; }
.alert-error { background: #fff0f1; border-color: #e7a8af; color: #7a1d28; }

@media (prefers-color-scheme: dark) {
    :root { color-scheme: dark; --en206-panel: #101f30; --en206-ink: #f2f6fa; --en206-muted: #aab8c7; --en206-line: #344b61; }
    .panel { border-color: #344b61; }
    h2.auth-column-title { color: #f2f6fa; }
    button.social, input, .input, .input-disabled { background: #172a3d !important; color: #f2f6fa; }
    span.logo.apple, button.password-toggle img { filter: invert(1); }
    button.password-toggle { color: #f2f6fa; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (max-width: 820px) {
    .login-shell { align-items: flex-start; padding-inline: 14px; }
    .panel { padding: 28px 24px 0; }
    .auth-content-grid { display: block; margin-top: 28px; min-height: 0; }
    .auth-column-divider { height: 1px; margin: 24px 0 30px; }
    .auth-panel-footer { margin-inline: -24px; padding-inline: 24px; }
}
@media (max-width: 520px) {
    .login-shell, body.en206-auth-page > .panel { padding: 70px 10px 14px; }
    .panel { border-radius: 10px; padding: 22px 16px 0; }
    .en206-brand img, .logo-en206 { width: 76%; }
    .auth-panel-footer { flex-wrap: wrap; gap: 8px 14px; margin-inline: -16px; padding: 15px 16px; }
    .auth-panel-footer .sign-up { margin-left: 0; }
}

/* The two EN206 account pages share Papiri's auth-page proportions. */
.en206-auth-surface {
    box-sizing: border-box;
    min-height: 100svh;
    padding: 76px 32px 32px;
    width: 100%;
}
.auth-shell.en206-auth-surface {
    align-items: center;
    display: flex;
    justify-content: center;
}
.en206-auth-surface .panel {
    border-radius: 8px;
    padding: 34px 38px 0;
}
.en206-auth-surface .panel-body {
    min-width: 0;
    overflow-wrap: anywhere;
}
.en206-auth-surface .en206-brand-identity {
    align-items: center;
    display: flex;
    gap: 15px;
    justify-content: center;
}
.en206-auth-surface .en206-brand-symbol {
    display: block;
    height: 56px;
    overflow: hidden;
    position: relative;
    width: 72px;
}
.en206-auth-surface .en206-brand-symbol img {
    height: 72px;
    left: 0;
    max-width: none;
    position: absolute;
    top: -8px;
    width: 72px;
}
.en206-auth-surface .en206-brand-wordmark {
    color: var(--en206-ink);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
}
.en206-auth-surface .en206-brand-motto {
    color: var(--en206-muted);
    font-size: 18px;
    margin: 14px 0 0;
    text-align: center;
}
.en206-auth-surface .auth-back-link {
    align-items: center;
    align-self: flex-start;
    display: inline-flex;
    font-size: 17px;
    min-height: 44px;
    margin-bottom: 12px;
}
.en206-auth-surface .auth-content-grid {
    gap: 38px;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.08fr);
    margin-top: 40px;
    min-height: 390px;
}
.en206-auth-surface .auth-content-grid--single {
    grid-template-columns: minmax(0, 460px);
}
.en206-auth-surface h2.auth-column-title {
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
    margin: 6px 0 24px;
}
.en206-auth-surface.login-shell .auth-provider-column .providers {
    padding-top: 30px;
}
.en206-auth-surface button.social {
    border-radius: 8px;
    font-size: 17px;
    min-height: 56px;
    margin-bottom: 16px;
    padding: 12px 20px;
}
.en206-auth-surface button.social .label {
    gap: 16px;
    grid-template-columns: 28px minmax(0, 1fr);
}
.en206-auth-surface span.logo {
    height: 26px;
    width: 26px;
}
.en206-auth-surface .entry-item label {
    font-size: 15px;
    margin-bottom: 8px;
}
.en206-auth-surface input:not([type="hidden"]) {
    border-radius: 0;
    font-size: 16px;
    height: 56px;
    padding-inline: 18px;
}
.en206-auth-surface button.password-toggle {
    right: 10px;
    top: 6px;
}
.en206-auth-surface button.password-toggle img {
    height: 24px;
    width: 24px;
}
.en206-auth-surface .forgot-password {
    font-size: 16px;
    margin: -2px 0 8px;
}
.en206-auth-surface .name-fields {
    display: flex;
    gap: 14px;
}
.en206-auth-surface .name-fields .entry-item {
    min-width: 0;
}
.en206-auth-surface .entry form > button[type="submit"] {
    font-size: 17px;
    font-weight: 500;
    min-height: 56px;
    margin-top: 12px;
}
.en206-auth-surface .auth-panel-footer {
    box-sizing: border-box;
    margin-top: 28px;
    min-height: 88px;
    padding-block: 22px;
}
.en206-auth-surface .auth-panel-footer p,
.en206-auth-surface .auth-panel-footer .sign-up {
    font-size: 16px;
}
.en206-auth-surface .auth-panel-footer .sign-up {
    margin-left: 20px;
}

@media (max-width: 900px) {
    .en206-auth-surface {
        align-items: flex-start;
    }
    .en206-auth-surface .panel {
        padding: 32px 32px 0;
    }
    .en206-auth-surface .auth-content-grid {
        display: block;
        margin-top: 32px;
        min-height: 0;
    }
    .en206-auth-surface.login-shell .auth-provider-column .providers {
        padding-top: 0;
    }
    .en206-auth-surface .auth-column-divider {
        height: 1px;
        margin: 28px 0 34px;
        width: 100%;
    }
    .en206-auth-surface .auth-panel-footer {
        margin-inline: -32px;
        padding-inline: 32px;
    }
}
@media (max-width: 520px) {
    .en206-auth-surface.login-shell,
    .en206-auth-surface.auth-shell {
        padding: 76px 12px 16px;
    }
    .en206-auth-surface .panel {
        padding: 24px 16px 0;
        width: 100%;
    }
    .en206-auth-surface .en206-brand-identity {
        gap: 12px;
    }
    .en206-auth-surface .en206-brand-symbol {
        height: 48px;
        width: 62px;
    }
    .en206-auth-surface .en206-brand-symbol img {
        height: 62px;
        top: -7px;
        width: 62px;
    }
    .en206-auth-surface .en206-brand-wordmark {
        font-size: 34px;
    }
    .en206-auth-surface .en206-brand-motto {
        font-size: 15px;
        margin-top: 10px;
    }
    .en206-auth-surface h2.auth-column-title {
        font-size: 22px;
    }
    .en206-auth-surface .name-fields {
        display: block;
    }
    .en206-auth-surface .auth-panel-footer {
        flex-wrap: wrap;
        gap: 8px 16px;
        margin-inline: -16px;
        padding-inline: 16px;
    }
    .en206-auth-surface .auth-panel-footer .sign-up {
        margin-left: 0;
    }
}
