:root {
    --auth-green: #2b604a;
    --auth-green-dark: #17382b;
    --auth-cream: #f7f4ec;
    --auth-paper: #fffdf9;
    --auth-gold: #c49a52;
    --auth-border: #e4dfd4;
    --auth-text: #29362f;
    --auth-muted: #707a74;
}
body.auth-portal {
    min-height: 100vh;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 15% 12%, rgba(196,154,82,.13), transparent 23rem),
        linear-gradient(145deg, #f9f7f1, #f2eee4);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr); }
.auth-story {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #fff;
    background:
        radial-gradient(circle at 80% 15%, rgba(255,255,255,.15), transparent 16rem),
        linear-gradient(155deg, #367058, var(--auth-green-dark));
}
.auth-story::after { content: ""; position: absolute; right: -110px; bottom: -120px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; }
.auth-brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px 15px 15px 5px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.17); font-family: Georgia, serif; font-weight: 800; }
.auth-brand-name { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; }
.auth-brand-subtitle { display: block; color: rgba(255,255,255,.68); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.auth-story-copy { position: relative; z-index: 1; max-width: 500px; }
.auth-story-copy h2 { margin-bottom: 1rem; font-family: Georgia, serif; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; }
.auth-story-copy p { color: rgba(255,255,255,.76); font-size: 1rem; line-height: 1.7; }
.auth-story-foot { position: relative; z-index: 1; color: rgba(255,255,255,.58); font-size: .78rem; }
.auth-form-side { display: grid; place-items: center; padding: 2rem; }
.auth-card { width: min(100%, 520px); }
.auth-card.wide { width: min(100%, 780px); }
.auth-eyebrow { color: var(--auth-green); font-size: .74rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.auth-title { margin: .35rem 0 .45rem; color: var(--auth-green-dark); font-family: Georgia, serif; font-size: clamp(1.85rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; }
.auth-subtitle { margin-bottom: 1.6rem; color: var(--auth-muted); }
.form-control, .form-select { min-height: 48px; border-color: var(--auth-border); border-radius: 12px; background: rgba(255,255,255,.85); }
.form-control:focus, .form-select:focus { border-color: #6c9982; box-shadow: 0 0 0 .22rem rgba(43,96,74,.12); }
.form-label { color: #405047; font-weight: 720; }
.btn { min-height: 46px; border-radius: 12px; font-weight: 750; }
.btn-success, .btn-primary, .btn-dark { color: #fff; border-color: var(--auth-green); background: var(--auth-green); }
.btn-success:hover, .btn-primary:hover, .btn-dark:hover { border-color: var(--auth-green-dark); background: var(--auth-green-dark); }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.auth-links a { color: var(--auth-green); font-weight: 650; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: .7rem; margin: 1.3rem 0; color: var(--auth-muted); font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-border); }
.alert { border: 0; border-radius: 12px; }
.alert-success { color: #255541; background: #dff0e6; }
.alert-danger { color: #873535; background: #f6dfdf; }
.alert-warning { color: #6d531f; background: #f6ead0; }
.auth-note { padding: .95rem 1rem; border: 1px solid var(--auth-border); border-radius: 12px; background: rgba(255,255,255,.6); color: var(--auth-muted); font-size: .84rem; }
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { min-height: 210px; padding: 1.6rem; }
    .auth-story-copy { margin-top: 2rem; }
    .auth-story-copy h2 { font-size: 2rem; }
    .auth-story-copy p, .auth-story-foot { display: none; }
    .auth-form-side { padding: 1.5rem 1rem 2.5rem; }
}
.auth-story-admin {
    background:
        radial-gradient(circle at 80% 15%, rgba(255,255,255,.10), transparent 16rem),
        linear-gradient(155deg, #2f4354, #17212b);
}
