/* Authentication screens share the cabinet's graphite and steel palette. */
:root {
    color-scheme: dark;
    --bg: #0c1017;
    --panel: #111722;
    --panel-soft: #161e2b;
    --field: #0e141e;
    --line: #293344;
    --line-soft: #212a38;
    --text: #e9eef5;
    --muted: #a0aec1;
    --muted-soft: #8191a8;
    --accent: #9ebbd9;
    --accent-strong: #c3d7ec;
}
* { box-sizing: border-box; }
html { min-width: 280px; background: var(--bg); }
body { margin: 0; color: var(--text); font: 14px/1.55 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.auth-icon { width: 19px; height: 19px; flex: 0 0 auto; display: block; }
.auth-page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(ellipse at 36% 8%, #1a283b5c, transparent 52%), var(--bg);
}
.auth-topbar, .auth-footer { width: min(1280px, calc(100% - 80px)); margin: 0 auto; }
.auth-topbar { display: flex; justify-content: space-between; align-items: center; min-height: 102px; gap: 20px; border-bottom: 1px solid var(--line-soft); }
.auth-wordmark { display: inline-flex; align-items: center; gap: 12px; }
.auth-wordmark img { width: 35px; height: 39px; object-fit: contain; }
.auth-wordmark > span { display: block; font-size: 17px; font-weight: 700; letter-spacing: .07em; line-height: 1.2; }
.auth-wordmark > span > span { display: block; margin-top: 4px; font-size: 8px; font-weight: 500; letter-spacing: .14em; color: var(--muted-soft); }
.back-home { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 5px 0 5px 15px; font-size: 12px; color: var(--muted); }
.back-home .auth-icon { width: 16px; height: 16px; }
.back-home:hover { color: var(--text); }
.auth-shell {
    width: min(1180px, calc(100% - 100px));
    margin: auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 444px);
    column-gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
.auth-card {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 32px;
    background: linear-gradient(150deg, #151e2b, #111722 65%);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 30px 75px #0003, 0 1px 0 #ffffff04 inset;
}
.auth-head { padding-bottom: 26px; }
.auth-eyebrow { display: block; margin-bottom: 11px; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.auth-head h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.75px; font-weight: 600; margin-bottom: 10px; }
.auth-head p { color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.form-grid { display: grid; gap: 18px; }
.form-row { min-width: 0; }
.form-row.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; color: #c8d3e1; }
.input-wrap { position: relative; min-width: 0; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #6f839e; pointer-events: none; }
.input-icon .auth-icon { width: 17px; height: 17px; }
.auth-input {
    width: 100%;
    height: 47px;
    padding: 0 43px 0 42px;
    border: 1px solid #2b3545;
    border-radius: 7px;
    outline: 0;
    background: var(--field);
    color: var(--text);
    font-size: 13px;
    line-height: normal;
    font-weight: 400;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-input::placeholder { color: #64758c; opacity: 1; }
.auth-input:hover { border-color: #42536d; }
.auth-input:focus { border-color: #8caccf; box-shadow: 0 0 0 3px #769bc61a; }
.auth-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px #142132 inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.input-hint { margin: 7px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--muted-soft); }
.password-toggle { position: absolute; top: 50%; right: 5px; width: 36px; height: 36px; transform: translateY(-50%); border: 0; border-radius: 5px; background: transparent; color: #8094ae; display: grid; place-items: center; }
.password-toggle .auth-icon { width: 17px; height: 17px; }
.password-toggle:hover { color: #d6e6f9; background: #a0b9d312; }
.password-toggle[aria-pressed="true"] { color: var(--accent-strong); background: #a0b9d312; }
.turnstile-wrap { display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 67px; padding: 0; }
.cf-turnstile { min-width: 0; max-width: 100%; }
.auth-submit { min-height: 47px; padding: 11px 16px; border: 1px solid #b0c9e4; border-radius: 7px; background: #a9c3dd; color: #101b29; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; font-weight: 650; transition: background .15s ease, border-color .15s ease; }
.auth-submit .auth-icon { width: 17px; height: 17px; }
.auth-submit:hover { background: #c2d6eb; border-color: #d4e2f0; }
.auth-submit:disabled { opacity: .42; cursor: not-allowed; background: #8c9eb4; border-color: #8c9eb4; }
.auth-switch { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted-soft); }
.alt-button { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; color: var(--accent-strong); font-size: 11.5px; font-weight: 500; }
.alt-button:hover { color: #fff; }
.alt-button .auth-icon { width: 14px; height: 14px; }
.flash { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #445a74; border-radius: 7px; font-size: 12px; line-height: 1.6; background: #819bb812; color: #d1ddeb; overflow-wrap: anywhere; }
.flash strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; }
.flash.error { border-color: #754650; background: #9d4e5d0e; color: #e2b8bf; }
.flash.success { border-color: #42655e; background: #4b8c790e; color: #b6d4c9; }
.flash.warning { border-color: #665b43; background: #a48d5d0c; color: #d4c5a5; }
.flash ul { padding-left: 16px; margin: 0; }
.flash li + li { margin-top: 3px; }
.auth-brand { grid-column: 1; grid-row: 1; min-width: 0; align-self: stretch; padding: 20px 0; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.brand-topline, .brand-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #687a92; font-size: 9px; letter-spacing: .035em; }
.brand-topline { padding-bottom: 25px; }
.brand-topline > span:last-child { white-space: nowrap; }
.brand-bottomline { border-top: 1px solid #2a37483d; padding-top: 20px; margin-top: 30px; }
.brand-bottomline > span:last-child { font-size: 8px; letter-spacing: .24em; }
.brand-panel { padding: 25px 0 18px; position: relative; }
.auth-logo-wrap { width: 96px; height: 108px; display: grid; place-items: center; margin-bottom: 32px; position: relative; }
.auth-logo-wrap::before { content: ''; position: absolute; inset: -22px -25px; border: 1px solid #9db8db0c; border-radius: 50%; }
.auth-logo-wrap::after { content: ''; position: absolute; inset: -8px -11px; border: 1px solid #9db8db12; border-radius: 50%; }
.auth-logo { width: 91px; height: 104px; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 12px 24px #0006); }
.brand-copy .auth-eyebrow { font-size: 9px; color: #7a9bc1; margin-bottom: 15px; }
.brand-copy h2 { margin: 0 0 18px; font-size: clamp(31px, 3.1vw, 44px); letter-spacing: -1.4px; font-weight: 550; line-height: 1.16; }
.brand-copy p { max-width: 395px; font-size: 13px; color: #8e9fb5; line-height: 1.8; }
.auth-features { display: grid; gap: 13px; margin-top: 29px; }
.auth-features > div { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #a0b1c5; }
.auth-features .auth-icon { color: #6b88ac; width: 16px; height: 16px; }
.auth-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-soft); min-height: 70px; align-items: center; color: #61718a; font-size: 10px; }
.auth-register .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(440px, 520px); column-gap: clamp(40px, 5vw, 80px); padding-top: 40px; padding-bottom: 40px; }
.auth-register .auth-card { padding: 30px; }
.auth-register .auth-head { padding-bottom: 22px; }
.auth-register .auth-head h1 { font-size: 27px; }
.auth-register .form-grid { gap: 17px; }
.auth-register .input-icon { left: 12px; }
.auth-register .auth-input { padding-left: 37px; font-size: 12px; }
.requirements { border: 1px solid var(--line-soft); border-radius: 7px; padding: 13px 14px; background: #0c121c55; }
.requirements > strong { display: block; font-size: 10px; color: #91a2b9; font-weight: 500; margin-bottom: 10px; }
.require-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px 12px; }
.require-item { display: flex; align-items: center; gap: 6px; font-size: 10px; line-height: 1.5; color: #6e8099; }
.require-item .mark { width: 13px; flex: 0 0 auto; display: inline-block; text-align: center; color: #53667f; font-size: 11px; }
.require-item.valid { color: #b2c8df; }
.require-item.valid .mark { color: #a5c0df; }
.requirements.ready { border-color: #3a506b; }
.approval-note { margin-top: 16px; color: #8495ac; font-size: 10.5px; line-height: 1.7; }
.auth-register .auth-switch { margin-top: 22px; padding-top: 19px; }
@media (max-width: 1050px) {
    .auth-shell { width: calc(100% - 64px); column-gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(350px, 420px); }
    .auth-register .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(420px, 500px); column-gap: 35px; }
    .brand-topline > span:first-child { max-width: 160px; }
    .brand-topline > span:last-child { display: none; }
    .brand-copy h2 { font-size: 33px; }
    .brand-copy p { font-size: 12px; }
    .auth-topbar, .auth-footer { width: calc(100% - 64px); }
}
@media (max-width: 820px) {
    .auth-topbar, .auth-footer { width: min(560px, calc(100% - 40px)); }
    .auth-topbar { min-height: 84px; }
    .auth-shell, .auth-register .auth-shell { width: min(500px, calc(100% - 40px)); display: block; padding: 36px 0; }
    .auth-card, .auth-register .auth-card { padding: 30px; }
    .auth-brand { display: none; }
    .auth-head h1 { font-size: 27px; }
    .auth-footer { min-height: 66px; font-size: 9px; }
}
@media (max-width: 480px) {
    .auth-topbar, .auth-footer { width: calc(100% - 32px); }
    .auth-topbar { min-height: 76px; }
    .auth-wordmark img { width: 29px; height: 34px; }
    .auth-wordmark { gap: 9px; }
    .auth-wordmark > span { font-size: 15px; }
    .auth-wordmark > span > span { font-size: 7px; letter-spacing: .1em; }
    .back-home { font-size: 11px; gap: 6px; }
    .auth-shell, .auth-register .auth-shell { width: calc(100% - 24px); padding: 24px 0; }
    .auth-card, .auth-register .auth-card { padding: 25px 22px; border-radius: 11px; }
    .auth-head h1, .auth-register .auth-head h1 { font-size: 25px; letter-spacing: -.65px; }
    .auth-head p { font-size: 12px; }
    .auth-input, .auth-register .auth-input { font-size: 16px; height: 48px; }
    .auth-input::placeholder { font-size: 13px; }
    .form-row.two { grid-template-columns: 1fr; gap: 16px; }
    .require-grid { grid-template-columns: 1fr; gap: 7px; }
    .require-item { font-size: 10.5px; }
    .turnstile-wrap:has(.cf-turnstile[data-size="compact"]) { min-height: 140px; }
    .auth-switch { align-items: flex-start; font-size: 11px; }
    .auth-footer { padding: 17px 0; min-height: 62px; flex-wrap: wrap; gap: 5px; }
    .auth-footer > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

/* Quiet controls without decorative directional glyphs. */
.auth-submit{justify-content:center}.back-home{padding-left:0}.alt-button{border-bottom:1px solid #5a718b;min-height:27px}.alt-button:hover{border-color:#c3d7ec}
