/* ================================================
   AUTH PAGES STYLES (CodeMax.md §19)
   Shared by forgot-password.html, reset-password.html,
   verify-email.html, and the discover.html page-header.
   These are small style blocks that share the .auth-card
   pattern. Centralizing them here avoids duplicating the
   same rules in 4 separate files.
   ================================================ */

/* Auth card — used by forgot/reset/verify-email. The
   card sits centred on a light-grey page background. */
.auth-card {
    max-width: 420px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.auth-card h1 { margin-bottom: 0.5rem; }
.auth-card .hint {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}
.auth-form input:focus { outline: none; border-color: var(--primary); }
.auth-card a { color: var(--primary); text-decoration: none; }

/* reset-password.html only — password-strength hint. */
.auth-form .pw-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: -0.5rem;
}

/* discover.html — page header + result card structure. */
.main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.page-header { margin-bottom: 2rem; }
.page-header h1 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.page-header p { color: var(--text-light); }
.route-distance {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.route-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

/* ================================================
   DARK MODE OVERRIDES (CodeMax.md §19)
   The .auth-card uses var(--bg-white) already and
   just needs a slight shadow tweak. The other rules
   use var(--*) so they flip automatically.
   ================================================ */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: var(--bg-white);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    }
}
