@charset "UTF-8";

:root {
    color-scheme: dark;
    --ink: #08292d;
    --ink-deep: #051d21;
    --cream: #faefd8;
    --muted: #ccd6cf;
    --gold: #edbd69;
    --line: rgba(228, 182, 104, .45);
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Avenir Next", "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; color: var(--cream); background: var(--ink-deep); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ffe7ad; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; top: -100px; left: 12px; padding: 12px 20px; background: var(--cream); color: var(--ink-deep); }
.skip-link:focus { top: 12px; }
.auth-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--ink-deep); }
.auth-header__inner { width: min(1460px, calc(100% - 88px)); margin-inline: auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: var(--cream); text-decoration: none; }
.brand img { width: 55px; height: 55px; object-fit: contain; }
.brand__name { display: block; padding-left: 19px; border-left: 1px solid var(--gold); font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.05; letter-spacing: .025em; text-transform: uppercase; }
.brand__name small { display: block; margin-top: 7px; font-family: var(--sans); font-size: 8px; font-weight: 500; letter-spacing: .2em; white-space: nowrap; }
.home-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; white-space: nowrap; }
.home-link span { color: var(--gold); font-size: 23px; }
.home-link:hover, .auth-footer a:hover { color: var(--gold); }

.page { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 140px); background: var(--ink); }
.auth-art-frame { position: absolute; inset: 0; pointer-events: none; }
.auth-art, .auth-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.auth-art { object-fit: cover; object-position: left center; }
.auth-shade { background: linear-gradient(90deg, rgba(4, 26, 29, .18), transparent 42%, rgba(4, 26, 29, .2) 65%, rgba(4, 26, 29, .74)), linear-gradient(180deg, rgba(4, 26, 29, .23), transparent 35%); }
.shell { width: min(1460px, calc(100% - 88px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(430px, .95fr); align-items: start; gap: clamp(40px, 5vw, 90px); padding-block: 36px; }
.intro { padding-top: 42px; padding-bottom: 390px; }
.eyebrow { color: var(--gold); font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: .15em; line-height: 1.6; text-transform: uppercase; }
.intro h1 { max-width: 630px; margin-top: 17px; font-size: clamp(48px, 4.8vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; text-shadow: 0 3px 24px rgba(0, 0, 0, .32); }
.intro-copy { margin-top: 20px; color: #f2f1e7; font-size: clamp(16px, 1.55vw, 22px); text-shadow: 0 2px 14px #051d21; }

.login-panel { position: relative; padding: 24px 30px; border: 1px solid #c7984f; border-radius: 12px; background: linear-gradient(145deg, #0a3033, #052225 70%, #061e23); box-shadow: inset 0 0 0 3px rgba(18, 23, 18, .65), inset 0 0 0 4px rgba(201, 152, 79, .22), 0 18px 55px rgba(0, 0, 0, .38); }
.login-panel::before, .login-panel::after { position: absolute; content: ""; width: 8px; height: 8px; border: 1px solid #f2c276; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe0a4, #b17b30 45%, #4c2c12 80%); top: 10px; pointer-events: none; }
.login-panel::before { left: 10px; }
.login-panel::after { right: 10px; }
.panel-header { margin-bottom: 19px; text-align: center; }
.panel-mark { width: 52px; height: 52px; margin: 0 auto 8px; object-fit: contain; }
.panel-header h2 { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.panel-header p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; border: 1px solid #a9bab1; border-radius: 7px; }
.mode-tab { position: relative; min-height: 44px; margin: -1px; padding: 9px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-family: var(--serif); font-size: 16px; line-height: 1.25; cursor: pointer; }
.mode-tab[aria-selected="true"] { z-index: 1; border-color: var(--gold); background: linear-gradient(180deg, rgba(226, 180, 94, .12), rgba(226, 180, 94, .03)); color: var(--cream); font-weight: 700; box-shadow: inset 0 -2px 0 rgba(237, 189, 105, .4); }
.mode-tab:hover { color: var(--cream); background-color: rgba(237, 189, 105, .08); }
.form-section { display: none; }
.form-section.is-active { display: block; }
.is-hidden { display: none !important; }
.section-copy { margin-bottom: 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-grid { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field > label { color: var(--cream); font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.25; }
.field-copy { color: var(--muted); font-size: 12px; line-height: 1.5; }
.field input, .field select { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #a6b6ad; border-radius: 6px; color: #f8f1df; background: #08292d; font-size: 16px; line-height: 1.4; transition: border-color .16s ease, box-shadow .16s ease; }
.field input::placeholder { color: #b1c0b8; opacity: 1; font-size: 14px; }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(237, 189, 105, .12); }
.field select { padding-right: 32px; cursor: pointer; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 72px; }
.password-toggle { position: absolute; inset: 1px 2px 1px auto; min-width: 60px; border: 0; border-radius: 5px; background: transparent; color: var(--gold); font-size: 13px; cursor: pointer; }
.password-toggle:hover { color: #ffe2a0; background: rgba(237, 189, 105, .08); }
.remember-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; min-height: 44px; padding-block: 3px; cursor: pointer; }
.remember-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.remember-row strong { display: block; font-family: var(--serif); font-size: 15px; line-height: 1.3; }
.remember-row .field-copy { display: block; margin-top: 2px; }
.actions { display: grid; gap: 8px; margin-top: 16px; }
.submit-btn, .ghost-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid #f7d997; border-radius: 6px; background: linear-gradient(180deg, #f9d98e, #ebba60 48%, #d39739); box-shadow: inset 0 0 0 3px rgba(109, 65, 14, .34), 0 4px 20px rgba(0, 0, 0, .18); color: #281807; font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: filter .18s ease; }
.submit-btn:hover:not(:disabled), .ghost-btn:hover { filter: brightness(1.1); }
.submit-btn:disabled, .link-btn:disabled { opacity: .65; cursor: wait; }
.secondary-row { text-align: center; }
.secondary-row a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; font-size: 13px; }
.signup-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 7px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.signup-note a { display: inline-flex; align-items: center; min-height: 36px; color: var(--gold); font-family: var(--serif); font-size: 16px; font-weight: 700; }
.status { display: none; margin-bottom: 17px; padding: 12px 14px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.status.is-visible { display: block; }
.status.is-error { color: #ffe4df; background: #522f2d; border-color: #ca8f83; }
.status.is-success { color: #dfffe8; background: #21473c; border-color: #91bda6; }
.status.is-info { color: #e5f6ff; background: #254354; border-color: #91bacb; }
.session-card { display: grid; gap: 16px; padding: 21px 0 8px; color: var(--muted); }
.session-card strong { color: var(--cream); font-family: var(--serif); font-size: 23px; line-height: 1.3; }
.session-card p { font-size: 14px; line-height: 1.7; }
.session-actions { display: grid; gap: 13px; }
.session-actions .ghost-btn { font-size: 17px; }
.link-btn { min-height: 46px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--cream); font-size: 14px; cursor: pointer; }
.link-btn:hover:not(:disabled) { background: rgba(237, 189, 105, .08); }
.auth-footer { position: relative; border-top: 1px solid var(--line); background: var(--ink-deep); }
.auth-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 28px; min-height: 62px; padding: 9px 20px; }
.auth-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }

@media (min-width: 1700px) {
    .shell { padding-block: 50px; }
    .intro { padding-top: 62px; padding-bottom: 420px; }
}
@media (max-width: 1120px) {
    .auth-header__inner, .shell { width: calc(100% - 56px); }
    .shell { grid-template-columns: minmax(0, 1fr) minmax(390px, 1fr); gap: 30px; }
    .login-panel { padding: 24px; }
    .intro .eyebrow { font-size: 10px; }
    .intro h1 { font-size: 53px; }
    .intro-copy { font-size: 16px; }
    .auth-art { object-position: 25% center; }
    .auth-shade { background: linear-gradient(90deg, rgba(4, 26, 29, .45), transparent 55%, rgba(4, 26, 29, .5)); }
}
@media (max-width: 900px) {
    .shell { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; padding-block: 0 34px; }
    .intro { justify-self: start; min-height: 380px; padding-top: 35px; padding-bottom: 140px; }
    .intro h1 { font-size: 48px; }
    .intro h1 br:nth-of-type(1) { display: none; }
    .intro h1 { max-width: 510px; }
    .intro-copy { margin-top: 15px; }
    .auth-art { height: 600px; object-position: left center; }
    .auth-shade { background: linear-gradient(180deg, rgba(4, 26, 29, .68), rgba(4, 26, 29, .1) 200px, #08292d 590px); }
    .login-panel { width: min(540px, 100%); }
    .page { min-height: 0; }
}
@media (max-width: 620px) {
    .auth-header__inner, .shell { width: calc(100% - 40px); }
    .auth-header__inner { min-height: 75px; gap: 16px; }
    .brand { gap: 9px; }
    .brand img { width: 43px; height: 43px; }
    .brand__name { padding-left: 10px; font-size: 22px; }
    .brand__name small { font-size: 6.5px; margin-top: 5px; letter-spacing: .16em; }
    .home-link { width: 60px; flex-shrink: 0; justify-content: center; gap: 0; font-size: 11px; text-align: center; white-space: normal; }
    .home-link span { display: none; }
    .intro { width: 100%; min-height: 220px; padding-top: 24px; padding-bottom: 50px; }
    .intro .eyebrow { font-size: 9px; letter-spacing: .12em; }
    .intro h1 { max-width: 340px; margin-top: 12px; font-size: clamp(33px, 9vw, 43px); line-height: 1.03; }
    .intro h1 br:nth-of-type(1) { display: initial; }
    .intro h1 br:nth-of-type(2) { display: none; }
    .intro-copy { max-width: 290px; font-size: 14px; }
    .auth-art { height: 360px; object-position: left bottom; }
    .auth-shade { background: linear-gradient(180deg, rgba(4, 26, 29, .78), rgba(4, 26, 29, .16) 180px, #08292d 360px); }
    .login-panel { padding: 23px 20px; border-radius: 10px; }
    .panel-mark { display: none; }
    .panel-header h2 { font-size: 29px; }
    .mode-tab { min-height: 46px; font-size: 14px; }
    .section-copy { font-size: 12px; }
    .field-grid { gap: 15px; }
    .field input, .field select { min-height: 48px; }
    .password-toggle { min-width: 58px; }
    .submit-btn { min-height: 50px; font-size: 20px; }
    .signup-note { font-size: 12px; }
    .auth-footer nav { gap: 24px; }
}
@media (max-width: 380px) {
    .auth-header__inner, .shell { width: calc(100% - 28px); }
    .brand__name { font-size: 18px; }
    .brand__name small { font-size: 5.5px; }
    .brand img { width: 37px; height: 37px; }
    .brand { gap: 7px; }
    .intro h1 { font-size: 33px; }
    .login-panel { padding-inline: 17px; }
    .panel-header h2 { font-size: 26px; }
    .mode-tab { font-size: 13px; padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
