/* Sign-in, change-password, landing and standalone pages. */
:root {
    --fr-ever: #1F4636;
    --fr-ever-dark: #163227;
    --fr-ever-soft: #E7EEEA;
    --fr-teal: #2D6F7E;
    --fr-gold: #F2B632;
    --fr-gold-dark: #D99B18;
    --fr-gold-soft: #FDF3DE;
    --fr-red: #B42318;
    --fr-red-soft: #FEF3F2;
    --fr-ink: #1B2A31;
    --fr-slate: #3B4B54;
    --fr-muted: #6B7B84;
    --fr-paper: #FAF8F3;
    --fr-line: #E6E2D8;
    --fr-line-strong: #D3CDBE;
    --fr-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--fr-font); color: var(--fr-ink); background: var(--fr-paper); line-height: 1.5; }
a { color: var(--fr-teal); }
a:hover { color: var(--fr-ever); }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 16px; background: linear-gradient(160deg, var(--fr-ever) 0%, #2D6F5A 100%); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 2rem 1.75rem; box-shadow: 0 24px 60px rgba(0,0,0,0.25); }
.auth-logo { display: block; width: 84px; height: 84px; margin: 0 auto 0.75rem; border-radius: 16px; }
.auth-card h1 { margin: 0; text-align: center; font-size: 1.5rem; color: var(--fr-ink); }
.auth-sub { text-align: center; color: var(--fr-muted); margin: 0.35rem 0 1.5rem; }
.auth-line { text-align: center; color: var(--fr-slate); font-size: 0.9rem; margin: -0.75rem 0 1.25rem; overflow-wrap: anywhere; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--fr-ink); }
.form-group input { width: 100%; min-height: 48px; padding: 0.65rem 0.8rem; border: 1px solid var(--fr-line-strong); border-radius: 10px; font: inherit; font-size: 1rem; color: var(--fr-ink); background: #fff; }
.form-group input:focus { outline: 2px solid var(--fr-teal); outline-offset: 1px; }
.hint { font-size: 0.82rem; color: var(--fr-muted); margin-top: 0.3rem; }
.button { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--fr-ever); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; }
.button:hover:not(:disabled) { background: var(--fr-ever-dark); color: #fff; }
.button:disabled { opacity: 0.6; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--fr-teal); cursor: pointer; text-decoration: underline; }
.link-button:hover { color: var(--fr-ever); background: none; }
.msg { display: none; border-radius: 10px; padding: 0.75rem 0.9rem; margin-bottom: 1rem; font-size: 0.92rem; font-weight: 600; border: 1px solid; }
.msg.show { display: block; }
.msg--error { background: var(--fr-red-soft); border-color: #FECDCA; color: var(--fr-red); }
.msg--ok { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.auth-foot { margin-top: 1.5rem; text-align: center; font-size: 0.85rem; color: var(--fr-muted); }
.auth-foot a { font-weight: 600; text-decoration: none; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite; }
.spinner.dark { border-color: rgba(31,70,54,0.2); border-top-color: var(--fr-ever); }
@keyframes spin { to { transform: rotate(360deg); } }
.step { display: none; }
.step.active { display: block; }
.status { display: flex; align-items: center; justify-content: center; gap: 0.6rem; color: var(--fr-slate); padding: 1rem 0; text-align: center; }

/* Landing */
.land-top { background: var(--fr-ever); color: #fff; }
.land-nav { max-width: 1080px; margin: 0 auto; padding: 1rem 16px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.land-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 700; }
.land-brand:hover { color: #fff; }
.land-brand img { width: 40px; height: 40px; border-radius: 8px; background: #fff; }
.land-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.land-btn--gold { background: var(--fr-gold); color: var(--fr-ever-dark); }
.land-btn--gold:hover { background: var(--fr-gold-dark); color: var(--fr-ever-dark); }
.land-btn--light { border-color: rgba(255,255,255,0.6); color: #fff; }
.land-btn--light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.land-btn--ever { background: var(--fr-ever); color: #fff; }
.land-btn--ever:hover { background: var(--fr-ever-dark); color: #fff; }
.land-btn--outline { border-color: var(--fr-line-strong); background: #fff; color: var(--fr-slate); }
.land-btn--outline:hover { background: var(--fr-paper); color: var(--fr-ink); }
.land-hero { max-width: 1080px; margin: 0 auto; padding: 2.5rem 16px 3.5rem; }
.land-hero h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); line-height: 1.15; margin: 0 0 0.75rem; color: #fff; max-width: 760px; }
.land-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.88); max-width: 680px; margin: 0 0 1.5rem; }
.land-hero .land-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.land-section { max-width: 1080px; margin: 0 auto; padding: 2.5rem 16px; }
.land-section h2 { font-size: 1.5rem; margin: 0 0 1rem; color: var(--fr-ink); }
.land-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .land-grid { grid-template-columns: 1fr; } }
.land-card { background: #fff; border: 1px solid var(--fr-line); border-radius: 14px; padding: 1.2rem; }
.land-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--fr-ink); }
.land-card p { margin: 0; color: var(--fr-slate); }
.land-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.land-steps li { counter-increment: s; background: #fff; border: 1px solid var(--fr-line); border-radius: 14px; padding: 1rem 1rem 1rem 3.4rem; position: relative; color: var(--fr-slate); }
.land-steps li::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--fr-gold); color: var(--fr-ever-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.land-steps strong { color: var(--fr-ink); }
.land-foot { text-align: center; color: var(--fr-muted); font-size: 0.85rem; padding: 2rem 16px 3rem; }

/* Picker and no-access */
.pick-wrap { max-width: 720px; margin: 0 auto; padding: 2rem 16px; }
.pick-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.pick-head img { width: 48px; height: 48px; border-radius: 10px; }
.pick-head h1 { margin: 0; font-size: 1.4rem; }
.pick-list { display: grid; gap: 0.75rem; }
.pick-item { width: 100%; text-align: left; background: #fff; border: 1px solid var(--fr-line); border-radius: 14px; padding: 1rem 1.1rem; cursor: pointer; font: inherit; color: var(--fr-ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pick-item:hover { border-color: var(--fr-ever); background: #fff; color: var(--fr-ink); box-shadow: 0 6px 18px rgba(31,70,54,0.12); }
.pick-item__name { font-weight: 800; font-size: 1.05rem; }
.pick-item__meta { color: var(--fr-muted); font-size: 0.88rem; }
.pick-badge { display: inline-block; padding: 0.12rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: #EEF2F4; color: var(--fr-slate); }
.pick-badge--ok { background: #EBF3E5; color: #2D5A17; }
.pick-badge--warn { background: var(--fr-gold-soft); color: #7A5306; }
.info-card { background: #fff; border: 1px solid var(--fr-line); border-radius: 16px; padding: 1.5rem; }
.info-card h1 { font-size: 1.4rem; margin: 0 0 0.75rem; }
.info-card p { color: var(--fr-slate); }
