/* Account-pagina's: register, login, forgot
 * Veldnamen + inputs gebruiken globale .form-control / label styling (zelfde als /contact)
 * Alleen de pagina-omlijsting (card, h1, lead, akkoord, alt-link, pwd-toggle) is custom.
 */

.account-page {
    background: #f8f9fa;
    min-height: 60vh;
    padding: 48px 16px;
    margin: -15px -15px 0;
}

.account-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.account-card h1 {
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 14px;
    font-weight: 700;
    color: #111;
}

.account-card .lead {
    color: #444;
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.55;
}

/* form-group spacing, niet de input zelf */
.account-card .form-group {
    margin-bottom: 18px;
}

/* labels: standaard globale `label { color: #222 }` werkt al
   maar wij maken ze in account-card iets prominenter (semibold + ietsje groter) */
.account-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
    color: #222;
}

/* form-control overrides we NIET — globale 16px / min-height 40px / padding 8 12 doet 't werk.
   Hier alleen focus-state aanvullen met brand-rood (kan, geen !important nodig) */
.account-card .form-control:focus {
    border-color: #b22222;
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.15);
}

/* Submit-knop: globale .btn werkt; wij geven 'm hier full-width + iets royaler */
.account-card .submit-btn {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 600;
    background: #b22222;
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s;
}
.account-card .submit-btn:hover  { background: #971c1c; }
.account-card .submit-btn:active { transform: translateY(1px); }

/* "Al een account? Inloggen" — onder formulier */
.account-card .alt-link {
    text-align: center;
    margin-top: 24px;
    font-size: 16px;
    color: #444;
}
.account-card .alt-link a {
    color: #b22222;
    text-decoration: none;
    font-weight: 600;
}
.account-card .alt-link a:hover { text-decoration: underline; }

/* Akkoord-checkbox: leesbaar — forceer 16px met !important om alle erfregels te overrulen */
.account-card .terms,
.account-card .terms-label,
.account-card .terms-text,
.account-card .terms-text a {
    font-size: 16px !important;
    line-height: 1.5;
}
.account-card .terms {
    color: #222;
    margin-bottom: 4px;
}
.account-card .terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
    color: #222;
}
.account-card .terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: #b22222;
}
.account-card .terms a {
    color: #b22222;
    text-decoration: underline;
}

/* Password input + Toon-knop */
.account-card .pwd-wrap {
    position: relative;
}
.account-card .pwd-toggle {
    position: absolute;
    right: 4px;
    top: 4px;
    height: 32px;
    padding: 0 12px;
    background: none;
    border: 0;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
}
.account-card .pwd-toggle:hover {
    background: #f0f0f0;
}
.account-card .pwd-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.account-card .pwd-strength > span {
    display: block;
    height: 100%;
    width: 0;
    transition: width 0.2s, background 0.2s;
}
.account-card .pwd-strength.weak > span   { width: 33%;  background: #c0392b; }
.account-card .pwd-strength.med > span    { width: 66%;  background: #f39c12; }
.account-card .pwd-strength.strong > span { width: 100%; background: #27ae60; }

/* Login row: onthouden + vergeten */
.account-card .row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 18px;
}
.account-card .row-between label {
    font-weight: normal;
    margin: 0;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}
.account-card .row-between input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #b22222;
}
.account-card .row-between a {
    color: #b22222;
    text-decoration: none;
}
.account-card .row-between a:hover {
    text-decoration: underline;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Passkey-knop + scheidingslijn boven email/wachtwoord — opt-in via JS */
.account-card .passkey-section {
    margin-bottom: 14px;
}
.account-card .passkey-btn {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    color: #222;
    border: 1.5px solid #d0d4d9;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.account-card .passkey-btn .fa { color: #b22222; font-size: 18px; }
.account-card .passkey-btn:hover {
    border-color: #b22222;
    background: #fcf6f6;
}
.account-card .passkey-status {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    min-height: 18px;
}
.account-card .passkey-ok  { color: #1f7a30; }
.account-card .passkey-err { color: #b22222; }
.account-card .passkey-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #888;
    font-size: 14px;
}
.account-card .passkey-divider::before,
.account-card .passkey-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e6ea;
}

/* Mobile */
@media (max-width: 480px) {
    .account-page  { padding: 24px 0; }
    .account-card  { margin: 0 12px; padding: 28px 22px; border-radius: 10px; }
    .account-card h1 { font-size: 26px; }
}
