:root {
    --bg: #f3f4f6;
    --card-bg: #ffffff;
    --accent: #ef4444;          /* Rood */
    --accent-strong: #f97316;   /* Oranje */
    --accent-soft: #fee2e2;
    --text: #0f172a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
}

/* ======= Reset / basis ======= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at top, rgba(239, 68, 68, 0.12), transparent 55%),
        radial-gradient(circle at bottom, rgba(59, 130, 246, 0.10), transparent 55%),
        #f3f4f6;
    color: var(--text);
}

.container {
    width: 100%;
    max-width: 480px;
}

/* ======= Card / layout ======= */

.card {
    position: relative;
    border-radius: 20px;
    padding: 20px 20px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.08);
}

.card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 6px;
    color: var(--text);
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ======= Badge ======= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ef4444;
}

/* ======= Buttons ======= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    border: none;
    padding: 11px 18px;
    background-image: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        0 10px 25px rgba(248, 113, 113, 0.35);
    transition:
        transform 0.08s ease-out,
        box-shadow 0.10s ease-out,
        filter 0.10s ease-out;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
        0 14px 30px rgba(248, 113, 113, 0.38);
}

.btn:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(248, 113, 113, 0.3);
}

.btn-secondary {
    background: #f9fafb;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    color: var(--text);
    padding: 8px 13px;
    font-size: 0.85rem;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ======= Links-grid (hub) ======= */

.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.link-item {
    background: #f9fafb;
    border-radius: 14px;
    padding: 11px 12px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid #e5e7eb;
    transition:
        transform 0.08s ease-out,
        box-shadow 0.10s ease-out,
        border-color 0.10s ease-out,
        background 0.10s ease-out;
}

.link-item span.label {
    font-weight: 600;
    font-size: 0.95rem;
}

.link-item span.url {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.link-item:hover {
    transform: translateY(-1px);
    border-color: #fecaca;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

/* ======= Numpad login ======= */

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.numpad button {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: var(--text);
    font-size: 1.2rem;
    padding: 11px 0;
    cursor: pointer;
    transition:
        background 0.08s ease-out,
        box-shadow 0.10s ease-out,
        transform 0.08s ease-out,
        border-color 0.10s ease-out;
}

.numpad button:hover {
    background: #ffffff;
    border-color: #fecaca;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.10);
}

.pin-display {
    letter-spacing: 6px;
    font-size: 1.1rem;
    padding: 9px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* ======= Formulieren ======= */

form .field {
    margin-bottom: 12px;
}

form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 9px 11px;
    background: #ffffff;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color 0.10s ease-out,
        box-shadow 0.10s ease-out,
        background 0.10s ease-out;
}

form textarea {
    min-height: 90px;
    resize: vertical;
}

form input:focus,
form textarea:focus {
    border-color: #f97316;
    box-shadow:
        0 0 0 1px rgba(249, 115, 22, 0.35),
        0 0 0 4px rgba(254, 215, 170, 0.8);
    background: #ffffff;
}

/* ======= Tabel (admin overzicht) ======= */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.84rem;
}

.table th,
.table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 4px;
    text-align: left;
}

.table th {
    font-weight: 500;
    color: #374151;
}

/* ======= Kleine tekst ======= */

.notice {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Mobiel tweaks */

@media (max-width: 480px) {
    .card {
        border-radius: 18px;
        padding: 18px 16px 16px;
    }

    .card h1 {
        font-size: 1.4rem;
    }
}
