:root {
    --auth-ink: #142739;
    --auth-muted: #607081;
    --auth-green: #135e44;
    --auth-gold: #d4af37;
}

body.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: #edf1f2;
    color: var(--auth-ink);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-visual {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 600px;
    padding: clamp(28px, 4vw, 64px);
    background: #123c35;
    color: #fff;
}

.auth-visual::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 29, 29, .46) 0%, rgba(7, 29, 29, .08) 42%, rgba(6, 29, 27, .88) 100%);
}

.auth-visual-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    color: #fff;
    text-decoration: none;
}

.auth-brand:hover { color: #fff; }

.auth-brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    font-size: 1.15rem;
}
.auth-brand-mark img { display: block; width: 36px; height: 36px; object-fit: contain; }

.auth-brand-name {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.auth-visual-copy { max-width: 650px; }
.auth-eyebrow {
    margin-bottom: 14px;
    color: #f4d977;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.auth-visual-copy h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.5rem, 4vw, 4.3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.045em;
}
.auth-visual-copy p:last-child {
    max-width: 560px;
    margin-bottom: 0;
    color: rgba(255,255,255,.9);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 36px clamp(28px, 5.5vw, 96px);
    background: #fff;
}

.auth-content-inner { width: 100%; max-width: 460px; margin: auto; }
.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--auth-green);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.auth-kicker::before { content: ''; width: 20px; height: 2px; background: var(--auth-gold); }
.auth-content h2 {
    margin-bottom: 10px;
    color: var(--auth-ink);
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.04em;
}
.auth-intro { margin-bottom: 30px; color: var(--auth-muted); line-height: 1.6; }
.auth-content .form-label { margin-bottom: 8px; font-weight: 600; color: var(--auth-ink); }
.auth-content .form-control {
    min-height: 50px;
    padding: 11px 15px;
    border: 1px solid #cbd5da;
    border-radius: 9px;
    background: #fbfcfc;
    color: var(--auth-ink);
}
.auth-content .form-control:focus {
    border-color: var(--auth-green);
    box-shadow: 0 0 0 4px rgba(19, 94, 68, .13);
    background: #fff;
}
.auth-submit {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--auth-green);
    border-radius: 9px;
    background: var(--auth-green);
    color: #fff;
    font-weight: 700;
    transition: background-color .2s ease, box-shadow .2s ease;
}
.auth-submit:hover:not(:disabled), .auth-submit:focus-visible {
    border-color: #0c4933;
    background: #0c4933;
    color: #fff;
    box-shadow: 0 6px 18px rgba(19, 94, 68, .2);
}
.auth-submit:disabled { opacity: .65; cursor: not-allowed; }
.auth-footnote { margin: 28px 0 0; color: var(--auth-muted); font-size: .85rem; line-height: 1.5; }
.auth-footer { max-width: 460px; width: 100%; margin: 0 auto; color: var(--auth-muted); font-size: .78rem; }
.auth-footer::before { content: ''; display: block; height: 1px; margin-bottom: 18px; background: #e5eaec; }
.auth-content a { color: var(--auth-green); }
.auth-content a:hover { color: #0c4933; }
.auth-content .alert[hidden] { display: none; }

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 290px; padding: 26px clamp(24px, 5vw, 48px); }
    .auth-visual-image { object-position: center 55%; }
    .auth-visual-copy h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
    .auth-visual-copy p:last-child { display: none; }
    .auth-content { padding: 48px 24px 28px; }
    .auth-content-inner { margin-bottom: 60px; }
}

@media (max-width: 480px) {
    .auth-visual { min-height: 230px; }
    .auth-visual-copy h1 { font-size: 1.75rem; }
    .auth-eyebrow { font-size: .68rem; margin-bottom: 8px; }
    .auth-content { padding-top: 36px; }
    .auth-content h2 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-submit { transition: none; }
}
