/* JWC Self-Service Password Reset — brand system matched to the sister project
   crm.jwc (CAPPELEN | paper). Navy #21447A · Gold #C19A5E · serif Georgia /
   sans Calibri. Self-contained and inline-style-free so a strict CSP
   (style-src 'self') applies. */
:root {
    color-scheme: light;
    --cap-navy: #21447A;
    --cap-navy-2: #1A3965;
    --cap-navy-soft: #E8EEF6;
    --cap-gold: #C19A5E;
    --cap-gold-2: #A4814C;
    --cap-gold-soft: #F3EBDB;
    --cap-ink: #21447A;
    --cap-ink-2: #43608A;
    --cap-muted: #6F85A4;
    --cap-rule: #DBE3EF;
    --cap-good: #2E7D4F;
    --cap-good-bg: #E8F2EC;
    --cap-bad: #B5413A;
    --serif: "Georgia", "Times New Roman", ui-serif, serif;
    --sans: "Calibri", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
    font-family: var(--sans);
    color: var(--cap-ink);
    font-size: 14px;
    line-height: 1.45;
}
a { color: var(--cap-navy); text-decoration: none; }

/* ---------- Full-screen shell (matches crm login) ---------- */
.login-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b1e44 0%, #21447A 55%, #1a3565 100%);
    padding: 40px 20px;
}
.login-locales {
    position: absolute;
    top: 18px;
    right: 24px;
    display: flex;
    gap: 6px;
    font-size: 13px;
}
.login-locales a, .login-locales span {
    color: #CDD9EE;
    padding: 3px 9px;
    border-radius: 3px;
}
.login-locales a:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }
.login-locales .is-active { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.14); }

/* ---------- Card ---------- */
.login-card {
    background: #fff;
    border: 1px solid var(--cap-rule);
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 420px;
    padding: 36px 36px 30px;
}
.login-brand {
    border-bottom: 1px solid var(--cap-rule);
    padding-bottom: 14px;
    margin-bottom: 6px;
}
.login-brand .wordmark-img { display: block; width: 220px; max-width: 100%; height: auto; }
.login-tag {
    font-family: var(--serif);
    font-style: italic;
    color: var(--cap-ink-2);
    font-size: 13px;
    margin-bottom: 20px;
}

/* ---------- Headings & copy ---------- */
h1.section-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 20px;
    color: var(--cap-navy);
    margin: 0 0 10px;
}
.lead { color: var(--cap-ink-2); margin: 0 0 20px; }

/* ---------- Forms ---------- */
.login-card label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cap-navy);
    font-weight: 600;
    margin-bottom: 4px;
}
.login-card input {
    width: 100%;
    padding: 9px 10px;
    font: 14px var(--sans);
    color: var(--cap-ink);
    background: #fff;
    border: 1px solid var(--cap-rule);
    border-radius: 2px;
    outline: none;
    margin-bottom: 14px;
}
.login-card input:focus {
    border-color: var(--cap-navy);
    box-shadow: 0 0 0 3px rgba(33, 68, 122, 0.10);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    font: 12.5px/1 var(--sans);
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    user-select: none;
}
.btn--primary { background: var(--cap-navy); color: #fff; }
.btn--primary:hover { background: var(--cap-navy-2); }

/* ---------- Password requirement hints ---------- */
.hints-title {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cap-navy);
    margin: 4px 0 6px;
}
ul.hints {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    color: var(--cap-ink-2);
    font-size: 12px;
}
ul.hints li { position: relative; padding: 3px 0 3px 14px; }
ul.hints li::before {
    content: "\203A";
    position: absolute;
    left: 0;
    color: var(--cap-gold);
    font-weight: 600;
}

/* ---------- Form errors (Symfony default <ul>) ---------- */
.login-card form ul:not(.hints) {
    list-style: none;
    padding: 10px 14px;
    margin: 0 0 16px;
    background: #fbeceb;
    border: 1px solid #e7c7c4;
    border-radius: 3px;
    color: var(--cap-bad);
    font-size: 13px;
}

/* ---------- Success banner ---------- */
.banner {
    padding: 12px 16px;
    border-radius: 3px;
    background: var(--cap-good-bg);
    border: 1px solid var(--cap-good);
    color: var(--cap-good);
    font-size: 13px;
    margin-bottom: 18px;
}
