:root {
    --auth-ink: #10231a;
    --auth-muted: #617168;
    --auth-primary: #0f6d45;
    --auth-primary-dark: #0b5e3a;
    --auth-accent: #ddf56e;
    --auth-border: #d9e3dc;
    --auth-background: #f3f7f4;
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.auth-page { margin: 0; color: var(--auth-ink); background: var(--auth-background); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); }
.auth-intro { position: relative; overflow: hidden; min-height: 100%; padding: clamp(30px, 5vw, 68px); display: flex; flex-direction: column; color: #fff; background: var(--auth-primary); isolation: isolate; }
.auth-intro::before, .auth-intro::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.07); }
.auth-intro::before { width: 420px; height: 420px; right: -190px; top: -150px; }
.auth-intro::after { width: 280px; height: 280px; left: -120px; bottom: -110px; }
.auth-brand { width: fit-content; display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-size: 21px; font-weight: 780; letter-spacing: -.04em; }
.auth-brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px 12px 12px 4px; color: #15301f; background: var(--auth-accent); font-size: 20px; font-weight: 850; }
.auth-intro-copy { margin: auto 0; max-width: 540px; padding: 72px 0; }
.auth-kicker, .auth-step { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-kicker { color: var(--auth-accent); }
.auth-intro h1 { max-width: 530px; margin: 22px 0 18px; font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.auth-intro-copy > p { margin: 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.7; }
.auth-benefits { margin: 34px 0 0; padding: 0; display: grid; gap: 15px; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); font-size: 14px; font-weight: 650; }
.auth-benefits span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: var(--auth-accent); font-size: 12px; }
.auth-security-note { margin: 0; color: rgba(255,255,255,.62); font-size: 12px; }
.auth-panel { padding: clamp(28px, 6vw, 84px); display: grid; place-items: center; }
.auth-card { width: min(100%, 480px); }
.auth-card-heading { margin-bottom: 30px; }
.auth-step { color: var(--auth-primary); }
.auth-card h2 { margin: 10px 0 8px; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -.045em; }
.auth-card-heading p, .auth-empty-state p { margin: 0; color: var(--auth-muted); font-size: 15px; line-height: 1.65; }
.auth-alert { margin: 0 0 22px; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 14px; line-height: 1.5; }
.auth-alert-error { color: #8a1c14; border-color: #f0c8c4; background: #fff1f0; }
.auth-alert-success { color: #155d3c; border-color: #bcdcca; background: #ecf8f1; }
.auth-label { margin: 18px 0 8px; display: block; color: #254333; font-size: 13px; font-weight: 750; }
.auth-input { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid var(--auth-border); border-radius: 11px; color: var(--auth-ink); background: #fff; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.auth-input:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 4px rgba(15,109,69,.11); }
.auth-password-field { position: relative; }
.auth-password-field .auth-input { padding-right: 82px; }
.auth-password-toggle { position: absolute; right: 7px; top: 7px; height: 40px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--auth-primary); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.auth-password-toggle:hover { background: #edf5f0; }
.auth-password-toggle:focus-visible, .auth-submit:focus-visible, .auth-brand:focus-visible { outline: 3px solid #a8d624; outline-offset: 3px; }
.password-requirements { margin: 17px 0 0; padding: 0; display: grid; gap: 7px; list-style: none; color: var(--auth-muted); font-size: 13px; }
.password-requirements li { display: flex; align-items: center; gap: 8px; }
.password-requirements span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #76877d; background: #e8eeea; font-size: 10px; font-weight: 800; }
.password-requirements li.is-valid { color: var(--auth-primary); }
.password-requirements li.is-valid span { color: #fff; background: var(--auth-primary); }
.auth-submit { width: 100%; min-height: 54px; margin-top: 26px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 11px; color: #fff; background: var(--auth-primary); box-shadow: 0 12px 26px rgba(15,109,69,.2); cursor: pointer; font-size: 15px; font-weight: 760; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.auth-submit:hover { background: var(--auth-primary-dark); transform: translateY(-1px); }
.auth-submit-link { width: fit-content; padding-inline: 24px; }
.auth-form-note { margin: 13px 0 0; color: #7a8980; font-size: 12px; text-align: center; }
.auth-empty-state { text-align: left; }
.auth-empty-icon { width: 46px; height: 46px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 14px; color: #8a1c14; background: #fff1f0; font-size: 22px; font-weight: 800; }

@media (max-width: 840px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-intro { min-height: auto; padding: 25px 24px 30px; }
    .auth-intro-copy { padding: 48px 0 22px; }
    .auth-intro h1 { font-size: clamp(38px, 10vw, 54px); }
    .auth-benefits, .auth-security-note { display: none; }
    .auth-layout-login .auth-intro-copy { padding-bottom: 5px; }
    .auth-panel { padding: 44px 22px 60px; place-items: start center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
