/*
 * style.css — Eenvoudige, moderne en mobielvriendelijke styling
 * Gebouwd zonder framework, puur CSS custom properties + flexbox.
 */

/* ── Reset & basisinstellingen ─────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --clr-primary:     #4f46e5;
    --clr-primary-dk:  #3730a3;
    --clr-secondary:   #0ea5e9;
    --clr-bg:          #f1f5f9;
    --clr-surface:     #ffffff;
    --clr-text:        #1e293b;
    --clr-muted:       #64748b;
    --clr-error-bg:    #fee2e2;
    --clr-error-txt:   #b91c1c;
    --clr-border:      #e2e8f0;
    --radius:          0.75rem;
    --shadow:          0 4px 24px rgba(0, 0, 0, 0.08);
    --font:            system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--clr-bg);
    color: var(--clr-text);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── Kaart (centrale container) ────────────────────────────────────────────── */

.card {
    background: var(--clr-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 420px;
}

.card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--clr-primary);
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
}

.card p {
    color: var(--clr-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.card hr {
    border: none;
    border-top: 1px solid var(--clr-border);
    margin: 1.25rem 0;
}

/* ── Formulier ─────────────────────────────────────────────────────────────── */

form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 0.2rem;
    display: block;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--clr-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: var(--font);
    color: var(--clr-text);
    background: #fff;
    transition: border-color 0.15s;
    -webkit-appearance: none;
}

input:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ── Knoppen ───────────────────────────────────────────────────────────────── */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, opacity 0.15s;
    margin-top: 0.5rem;
}

.btn--primary {
    background: var(--clr-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--clr-primary-dk);
}

.btn--secondary {
    background: var(--clr-secondary);
    color: #fff;
}

.btn--secondary:hover {
    opacity: 0.85;
}

.btn--ghost {
    background: transparent;
    color: var(--clr-primary);
    border: 1.5px solid var(--clr-primary);
}

.btn--ghost:hover {
    background: rgba(79, 70, 229, 0.07);
}

.btn--small {
    width: auto;
    padding: 0.35rem 0.8rem;
    font-size: 0.875rem;
}

/* ── Foutmeldingen ─────────────────────────────────────────────────────────── */

.alert {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    list-style: none;
}

.alert--error {
    background: var(--clr-error-bg);
    color: var(--clr-error-txt);
    border-left: 4px solid var(--clr-error-txt);
}

/* ── Topbar (dashboard) ────────────────────────────────────────────────────── */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--clr-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.topbar + .card {
    margin-top: 72px;
}

.topbar__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.topbar .btn--ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.topbar .btn--ghost:hover {
    background: rgba(255,255,255,0.15);
}

/* ── Hulpklassen ───────────────────────────────────────────────────────────── */

.text-center {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    color: var(--clr-muted);
}

.text-center a {
    color: var(--clr-primary);
    font-weight: 600;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

/* ── Mediaqueries ──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .card {
        padding: 1.5rem 1.1rem;
        border-radius: 0.5rem;
    }

    .card h1 {
        font-size: 1.35rem;
    }
}
