/* ===============================
   GGR LOGIN / 2FA / RESET LAYOUT
   =============================== */

/* Wrapper: centreert de card op desktop */
.ggr-login-wrapper {
    min-height: calc(100vh - 140px); /* ruimte voor header/footer van theme */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: #f3f7f7;
    box-sizing: border-box;
}

/* Binnen-wrapper (logo + card) */
.ggr-login-shell {
    width: 100%;
    max-width: 420px;
}

/* Logo boven de kaart */
.ggr-logo-top {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.ggr-logo-top img {
    max-height: 75px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Kaart (login/2FA/reset/wachtwoord-vergeten) */
.ggr-login-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px 28px 28px;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
}

/* Titel en subtitel */
.ggr-login-title {
    margin: 0 0 4px 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

.ggr-login-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 24px;
    text-align: center;
}

/* Algemene paragrafen binnen de card (fallback) */
.ggr-login-card p {
    margin: 0 0 8px;
}

/* Velden */
.ggr-login-fields .ggr-field,
.ggr-2fa-form .ggr-field,
.ggr-resetpass-form .ggr-field {
    margin-bottom: 16px;
}

.ggr-login-card label,
.ggr-login-fields .ggr-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 6px;
    margin-top: 10px!important;
    text-align: left!important;
}

/* Inputvelden (login, 2FA, reset, lost password) */
.ggr-login-card input[type="text"],
.ggr-login-card input[type="email"],
.ggr-login-card input[type="password"],
.ggr-login-fields .ggr-field .input,
.ggr-2fa-form .input,
.ggr-resetpass-form .input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/* Placeholder kleur */
.ggr-login-card input::placeholder,
.ggr-login-fields .ggr-field .input::placeholder,
.ggr-2fa-form .input::placeholder,
.ggr-resetpass-form .input::placeholder {
    color: #b8b8b8;
    opacity: 1;
}

/* Focus state */
.ggr-login-card input:focus,
.ggr-login-fields .ggr-field .input:focus,
.ggr-2fa-form .input:focus,
.ggr-resetpass-form .input:focus {
    outline: none;
    border-color: #f49c6b;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(244, 156, 107, 0.3);
}

/* Foutstatus velden */
.ggr-login-card input.ggr-input-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.ggr-login-card input.ggr-input-error::placeholder {
    color: #dc2626;
    opacity: 1;
}

.ggr-field-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #dc2626;
}

/* Notices (info / error) */
.ggr-login-notice {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.ggr-login-notice--info {
    background: #eff6ff;
    color: #1d4ed8;
}

.ggr-login-notice--error {
    background: #fef2f2;
    color: #b91c1c;
}

/* Actieblok onder formulier (knoppen) */
.ggr-login-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Primaire oranje CTA-knop */
.ggr-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 6px;
    border: none;
    background: #f49c6b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.ggr-login-submit:hover {
    background: #f1884b;
    box-shadow: 0 10px 20px rgba(244, 156, 107, 0.35);
    transform: translateY(-1px);
}

.ggr-login-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Secundaire knop "Investeerder worden" (alleen login) */
.ggr-login-invest-button {
    display: block;
    width: 100%;
    margin-top: 8px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #e39b6c;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 18px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ggr-login-invest-button:hover {
    background: #fff7f2;
    box-shadow: 0 6px 14px rgba(227, 155, 108, 0.25);
}

/* Link-knop (bijv. "Nieuwe code sturen" bij 2FA) */
.ggr-link-button {
    background: none;
    border: none;
    padding: 0;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
}

.ggr-2fa-resend .ggr-link-button {
    color: #e39b6c !important;
    font-weight: 600;
}

.ggr-2fa-resend .ggr-link-button:hover {
    color: #d48752 !important;
}

/* Links "Wachtwoord vergeten?" / "Terug naar inloggen" */
.ggr-login-forgot,
.ggr-login-forgot:visited,
.ggr-login-back-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    color: #709aa7;
    text-decoration: none;
}

.ggr-login-forgot:hover,
.ggr-login-forgot:focus,
.ggr-login-back-link:hover,
.ggr-login-back-link:focus {
    color: #709aa7;
    text-decoration: underline;
}

/* Standaard WP-login knop verbergen (we gebruiken onze eigen) */
#ggr-loginform .button-primary {
    display: none !important;
}

/* Standaard WP-errors verbergen op de custom loginpagina's */
#login_error,
.ggr-login-card .message,
.ggr-login-card .error {
    display: none !important;
}

/* Toast-meldingen (login errors / success) */
.ggr-login-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    max-width: 380px;
    width: calc(100% - 32px);
    background: #b91c1c;
    color: #ffffff;
    border-radius: 13px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    font-size: 14px;
}

.ggr-login-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ggr-login-toast__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.ggr-login-toast__title {
    font-weight: 600;
    margin-bottom: 2px;
}

.ggr-login-toast__message {
    font-size: 13px;
    line-height: 1.4;
}

.ggr-login-toast__close {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #fef2f2;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 0 0 4px;
}

/* Succes-variant (bijv. "E-mail verstuurd") */
.ggr-login-toast--success {
    background: #ecfdf3;
    color: #166534;
}

/* ===============================
   RESPONSIVE (MOBIEL)
   =============================== */

@media (max-width: 640px) {
    /* Geen padding rondom: card full-width, full-height */
    .ggr-login-wrapper {
        padding: 0;
    }

    .ggr-login-shell {
        max-width: 100%;
    }

    .ggr-login-card {
        border-radius: 15px;
        padding: 24px 20px 22px 20px;
        box-shadow: none;
        display: initial!important;
    }

    .ggr-login-title {
        font-size: 22px;
    }

    .ggr-login-toast {
        right: 12px;
        left: 12px;
        bottom: 16px;
        width: auto;
    }
}
