/*
 * auth.css — Generieke styling voor auth.py en bijbehorende templates
 * =====================================================================
 * Dit bestand hoort, net als auth.py zelf, bij het herbruikbare
 * auth-pakket (auth.py + login.html + register.html + users.html +
 * auth.css). Kopieer het ongewijzigd naar static/css/ van elk
 * nieuw project.
 *
 * Dekt de classes die door login.html, register.html en users.html
 * gebruikt worden:
 *   - auth-scherm / auth-kaart / logo-blok / logo-vinkje
 *   - flash / flash-success
 *   - auth-form, btn / btn--primary / btn--google, scheiding
 *   - footer-link
 *   - werkbalk, dempt, tabel-wrap, tabel, verborgen, acties, knop, gevaar
 *
 * Kleuren/afmetingen staan als CSS-variabelen bovenaan; een project
 * kan ze desgewenst overschrijven door dezelfde variabelen ná deze
 * link opnieuw te definiëren in zijn eigen styles.css.
 */

:root {
    --auth-primary: #007bff;
    --auth-primary-hover: #0069d9;
    --auth-danger: #dc3545;
    --auth-danger-hover: #c82333;
    --auth-text: #212529;
    --auth-text-muted: #6c757d;
    --auth-border: #dee2e6;
    --auth-bg-card: #ffffff;
    --auth-bg-page: #f4f6f8;
    --auth-radius: 10px;
    --auth-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* --- Login/registratie: centrale kaart op het scherm --- */

.auth-scherm {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-kaart {
    width: 100%;
    max-width: 380px;
    background: var(--auth-bg-card);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 32px 28px;
}

.logo-blok {
    text-align: center;
    margin-bottom: 24px;
}

.logo-blok h1 {
    font-size: 1.4rem;
    margin: 8px 0 0;
    color: var(--auth-text);
}

.logo-vinkje {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--auth-primary);
    color: #fff;
    font-size: 1.2rem;
}

/* --- Flash-meldingen --- */

.flash {
    background: #fdecea;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.flash-success {
    background: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

/* --- Formulier --- */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 6px;
}

.auth-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--auth-border);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* --- Knoppen --- */

.btn {
    display: inline-block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.btn--primary,
.auth-form button[type="submit"] {
    background: var(--auth-primary);
    color: #fff;
    width: 100%;
}

.btn--primary:hover,
.auth-form button[type="submit"]:hover {
    background: var(--auth-primary-hover);
}

.btn--google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--auth-border);
    border-radius: 6px;
    background: #fff;
    color: var(--auth-text);
    font-weight: 600;
    text-decoration: none;
}

.btn--google:hover {
    background: #f8f9fa;
}

.scheiding {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--auth-text-muted);
    font-size: 0.8rem;
    margin: 20px 0;
}

.scheiding::before,
.scheiding::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--auth-border);
}

.scheiding span {
    padding: 0 10px;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
}

.footer-link a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-link a:hover {
    text-decoration: underline;
}

/* --- Gebruikersbeheer (users.html) --- */

.werkbalk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.werkbalk h1 {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.dempt {
    color: var(--auth-text-muted);
    font-size: 0.85rem;
}

.tabel-wrap {
    overflow-x: auto;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
}

.tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tabel th,
.tabel td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--auth-border);
    white-space: nowrap;
}

.tabel thead th {
    background: var(--auth-bg-page);
    font-weight: 600;
    color: var(--auth-text);
}

.tabel tbody tr:last-child td {
    border-bottom: none;
}

.verborgen {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.acties {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.knop {
    padding: 6px 12px;
    border: 1px solid var(--auth-border);
    border-radius: 6px;
    background: #fff;
    color: var(--auth-text);
    font-size: 0.85rem;
    cursor: pointer;
}

.knop:hover {
    background: var(--auth-bg-page);
}

.knop.gevaar {
    background: var(--auth-danger);
    border-color: var(--auth-danger);
    color: #fff;
}

.knop.gevaar:hover {
    background: var(--auth-danger-hover);
}
