@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --forest-950: #0b1d17;
    --forest-900: #10271f;
    --forest-800: #173b2e;
    --forest-700: #205b43;
    --gold: #c99a43;
    --gold-light: #e6c778;
    --ink: #173129;
    --muted: #66766f;
    --paper: #fbfaf6;
    --line: #d9ded7;
    --danger: #a83232;
    --success: #20623f;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body.auth-page {
    min-height: 100vh;
    font-family: Inter, system-ui, sans-serif;
    color: var(--ink);
    background: var(--forest-950);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr);
}

.auth-story {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(28px, 4vw, 64px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image:
        linear-gradient(90deg, rgba(6, 25, 18, .5), rgba(6, 25, 18, .08) 72%),
        linear-gradient(0deg, rgba(6, 25, 18, .62), transparent 60%),
        url('../images/birthright-registration-hero-v2.png');
    background-size: cover;
    background-position: center;
}

.auth-story::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(230, 199, 120, .35);
    pointer-events: none;
}

.auth-brand, .auth-story-copy, .auth-art-caption { position: relative; z-index: 1; }

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 700;
}

.auth-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold-light);
    background: rgba(13, 39, 29, .72);
    font: 700 25px/1 "Cormorant Garamond", serif;
    color: var(--gold-light);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.auth-story-copy { max-width: 660px; padding: 9vh 2vw 4vh; }
.auth-eyebrow, .auth-kicker {
    margin: 0 0 14px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 11px;
    font-weight: 700;
}

.auth-story h1 {
    margin: 0;
    font: 700 clamp(54px, 6vw, 92px)/.88 "Cormorant Garamond", Georgia, serif;
    letter-spacing: -.035em;
    text-shadow: 0 3px 24px rgba(0, 0, 0, .45);
}

.auth-story-copy > p:not(.auth-eyebrow) {
    max-width: 570px;
    margin: 26px 0 0;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}

.auth-feature-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.auth-feature-row span {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(9, 29, 22, .52);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 600;
}

.auth-art-caption { margin: 0 0 4px; font: italic 600 16px "Cormorant Garamond", serif; color: rgba(255,255,255,.68); }

.auth-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(28px, 5vw, 88px);
    background:
        radial-gradient(circle at top right, rgba(201,154,67,.12), transparent 34%),
        var(--paper);
}

.auth-card { width: min(100%, 520px); }
.auth-card header { margin-bottom: 32px; }
.auth-card h2 { margin: 0; color: var(--ink); font: 700 clamp(40px, 4vw, 56px)/1 "Cormorant Garamond", Georgia, serif; letter-spacing: -.025em; }
.auth-card header > p:last-child { margin: 16px 0 0; color: var(--muted); line-height: 1.65; }

.auth-form { display: grid; gap: 10px; }
.auth-form-hidden { display: none; }
.auth-form label, .auth-label-row label { font-size: 13px; font-weight: 700; }
.auth-label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.auth-label-row span { color: var(--muted); font-size: 11px; }
.auth-label-row a { color: var(--forest-700); font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-label-row a:hover { text-decoration: underline; }

.auth-form input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: 500 15px Inter, sans-serif;
    padding: 0 15px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.auth-form input:focus { border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(32,91,67,.12); }
.auth-form input::placeholder { color: #9aa59f; }

.auth-form button, .auth-primary-link {
    min-height: 54px;
    margin-top: 14px;
    border: 0;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--forest-800);
    color: #fff;
    text-decoration: none;
    font: 700 14px Inter, sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(16,39,31,.17);
    transition: transform .18s, background .18s;
}

.auth-form button:hover, .auth-primary-link:hover { background: var(--forest-700); transform: translateY(-1px); }
.auth-form button span, .auth-primary-link span { color: var(--gold-light); font-size: 20px; }

.auth-notice { margin: 0 0 22px; padding: 13px 15px; border-left: 3px solid; border-radius: 4px; font-size: 13px; line-height: 1.5; }
.auth-notice-error { border-color: var(--danger); background: #faecec; color: #792525; }
.auth-notice-success { border-color: var(--success); background: #e9f5ed; color: #174b31; }

.auth-switch { margin: 26px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--forest-700); font-weight: 700; }
.auth-new-player {
    margin-top: 28px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, .72);
    color: var(--muted);
    font-size: 13px;
}
.auth-new-player a { color: var(--forest-700); font-weight: 700; text-decoration: none; white-space: nowrap; }
.auth-new-player a:hover { text-decoration: underline; }
.auth-privacy { margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: #89958f; font-size: 11px; text-align: center; }

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { min-height: 42vh; padding: 26px; }
    .auth-story-copy { padding: 10vh 0 2vh; }
    .auth-story h1 { font-size: clamp(46px, 12vw, 72px); }
    .auth-art-caption, .auth-feature-row { display: none; }
    .auth-panel { min-height: auto; padding: 48px 24px 60px; }
}

@media (max-width: 520px) {
    .auth-story { min-height: 34vh; }
    .auth-story-copy > p:not(.auth-eyebrow) { display: none; }
    .auth-card h2 { font-size: 42px; }
}
