/* Gedeelde stijlen voor auth-pagina's (login / register / wachtwoord / verify).
 * Alles gescoped onder body.auth-page om botsing met dashboard styles.css te voorkomen.
 */

body.auth-page {
    margin: 0;
    padding: 0;
    background: #3c3475;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body.auth-page .auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* 1:1 spacers — verticaal gecentreerd, met scroll als inhoud niet past. */
body.auth-page .auth-wrapper::before,
body.auth-page .auth-wrapper::after {
    content: '';
    flex: 1;
}


/* ---------- Card ---------- */

body.auth-page .auth-card {
    background: white;
    padding: 50px 40px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
}

body.auth-page .auth-card--wide {
    max-width: 500px;
}

body.auth-page .auth-card--center {
    text-align: center;
}


/* ---------- Logo + headings ---------- */

body.auth-page .auth-logo {
    text-align: center;
    margin-bottom: 35px;
}

body.auth-page .auth-logo img {
    max-width: 280px;
    height: auto;
}

body.auth-page .auth-title {
    color: #3c3475;
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

body.auth-page .auth-subtitle {
    color: #666;
    margin: 0 0 30px;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}


/* ---------- Form ---------- */

body.auth-page .auth-form-group {
    margin-bottom: 20px;
}

body.auth-page .auth-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3c3475;
    font-weight: 600;
}

body.auth-page .auth-form-group input,
body.auth-page .auth-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    background: white;
}

body.auth-page .auth-form-group input:focus,
body.auth-page .auth-form-group select:focus {
    outline: none;
    border-color: #e16b30;
}


/* ---------- Button ---------- */

body.auth-page .auth-btn {
    width: 100%;
    padding: 14px;
    background: #e16b30;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

body.auth-page .auth-btn:hover {
    background: #c55a25;
}

body.auth-page .auth-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}


/* ---------- Messages ---------- */

body.auth-page .auth-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

body.auth-page .auth-message.show {
    display: block;
}

body.auth-page .auth-message--error {
    background: #fee;
    border-left: 4px solid #d32f2f;
    color: #c62828;
}

body.auth-page .auth-message--success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}


/* ---------- Notice (waarschuwingsbox, bv. force-password-change) ---------- */

body.auth-page .auth-notice {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

body.auth-page .auth-notice h3 {
    color: #e65100;
    margin: 0 0 8px;
    font-size: 14px;
}

body.auth-page .auth-notice p {
    color: #666;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}


/* ---------- Footer link (terug naar login etc.) ---------- */

body.auth-page .auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

body.auth-page .auth-link a {
    color: #3c3475;
    text-decoration: none;
    font-weight: 500;
}

body.auth-page .auth-link a:hover {
    text-decoration: underline;
}

body.auth-page .auth-link--muted a {
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

body.auth-page .auth-link--muted a:hover {
    color: #3c3475;
}


/* ---------- Password requirements ---------- */

body.auth-page .auth-password-req {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

body.auth-page .auth-password-req .requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

body.auth-page .auth-password-req .requirement.valid {
    color: #4caf50;
}

body.auth-page .auth-password-req .requirement.invalid {
    color: #999;
}


/* ---------- Spinner + status icons (verify-email flow) ---------- */

body.auth-page .auth-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e16b30;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: auth-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes auth-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.auth-page .auth-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

body.auth-page .auth-icon--success { color: #4caf50; }
body.auth-page .auth-icon--error   { color: #d32f2f; }


/* ---------- Country dropdown (register-pagina) ---------- */

body.auth-page .auth-country-wrap {
    position: relative;
    width: 100%;
}

body.auth-page .auth-country-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: #333;
    font-family: inherit;
}

body.auth-page .auth-country-btn:hover,
body.auth-page .auth-country-btn:focus {
    border-color: #e16b30;
    outline: none;
}

body.auth-page .auth-country-arrow {
    font-size: 10px;
    color: #666;
}

body.auth-page .auth-country-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #3c3475;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.auth-page .auth-country-menu.open {
    display: block;
}

body.auth-page .auth-country-option {
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.auth-page .auth-country-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

body.auth-page .auth-country-option.selected {
    background: rgba(255, 255, 255, 0.1);
}