/* Password recovery pages. Same visual language as the sign-in page (css/login.css): navy brand mark,
   letter-spaced wordmark, soft inputs and the navy gradient button. Self-contained: the recovery CSP only
   allows this stylesheet. */
:root { color-scheme: light dark; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #0f172a; }
* { box-sizing: border-box; }
body {
    margin: 0; padding: 48px 20px; min-height: 100vh; display: grid; place-items: center;
    background: radial-gradient(circle at top, #f8fafc 0%, #eef2f7 45%, #e2e8f0 100%);
}
.recovery-card {
    width: min(100%, 480px); padding: 40px 40px 36px; border-radius: 20px; background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin: 0; }
.brand-mark {
    width: 64px; height: 64px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1f3a5f); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3);
}
.brand-mark svg { width: 28px; height: 28px; fill: #ffffff; }
.brand-name { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: #64748b; font-weight: 600; }
h1 { font-size: clamp(1.5rem, 5vw, 1.75rem); font-weight: 700; line-height: 1.25; margin: 8px 0 12px; }
p { line-height: 1.6; color: #475569; }
label { display: block; margin: 20px 0 8px; font-weight: 600; color: #334155; }
input:not([type=hidden]) {
    width: 100%; font: inherit; padding: 12px 16px; min-height: 52px; border: 1px solid #cbd5e1; border-radius: 12px;
    background: #f8fafc; color: #0f172a;
}
input:not([type=hidden]):focus { border-color: #0f172a; background: #ffffff; box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12); outline: none; }
button {
    width: 100%; font: inherit; font-weight: 600; min-height: 52px; margin-top: 24px; padding: 14px; cursor: pointer;
    border: none; border-radius: 12px; color: #ffffff; background: linear-gradient(135deg, #0f172a, #1f3a5f);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.25); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 12px 20px rgba(15, 23, 42, 0.3); }
a { color: #1e40af; font-weight: 600; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #1768db; outline-offset: 3px; }
.sign-in-link { margin-top: 28px; }
.recovery-skip-link { position: absolute; top: 8px; left: 8px; padding: 12px; background: #ffffff; transform: translateY(-200%); }
.recovery-skip-link:focus { transform: translateY(0); }
.validation-summary-errors { color: #a11326; }
.validation-summary-errors ul { list-style: none; margin: 0; padding: 0; }
.validation-summary-valid { display: none; }
@media (max-width: 480px) { body { padding: 24px 12px; } .recovery-card { padding: 28px 24px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } button:hover { transform: none; } }
/* Dark theme: follows the operating-system colour scheme, like the sign-in page and the app. */
@media (prefers-color-scheme: dark) {
    :root { color: #e5e7eb; }
    body { background: radial-gradient(circle at top, #1e293b 0%, #0f172a 45%, #0b1220 100%); }
    .recovery-card { background: #111827; border: 1px solid #1f2937; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45); }
    .brand-mark { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); }
    .brand-name { color: #94a3b8; }
    h1 { color: #f8fafc; }
    p { color: #cbd5e1; }
    label { color: #e2e8f0; }
    input:not([type=hidden]) { border-color: #334155; background: #0f172a; color: #f1f5f9; }
    input:not([type=hidden]):focus { border-color: #93c5fd; background: #0b1220; box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.25); }
    button { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4); }
    a { color: #93c5fd; }
    :focus-visible { outline-color: #93c5fd; }
    .recovery-skip-link { background: #111827; color: #e5e7eb; }
    .validation-summary-errors { color: #fca5a5; }
}
