/**
 * Auth popup — forced light theme (matches .gm-form request form).
 * Loaded late with high priority so theme/Elementor dark styles lose.
 */
.gm-auth-modal-dialog,
.gm-auth--popup,
.gm-auth--popup .gm-auth-card,
.gm-auth--popup .gm-form-input,
.gm-auth--popup .gm-form-textarea,
.gm-auth--popup .gm-form-select,
.gm-auth--popup .gm-otp-digit {
    color-scheme: light !important;
}

.gm-auth-modal-dialog {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

.gm-auth--popup {
    max-width: none !important;
    color: #1f2937 !important;
    background: transparent !important;
}

.gm-auth--popup .gm-auth-card {
    margin: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #d1d5db !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    padding: 24px 20px !important;
    color: #1f2937 !important;
}

.gm-auth--popup .gm-auth-brand-kicker,
.gm-auth--popup .gm-auth-title,
.gm-auth--popup .gm-auth-role-text,
.gm-auth--popup .gm-auth-role-text strong,
.gm-auth--popup .gm-auth-role,
.gm-auth--popup .gm-checkbox-label {
    color: #1f2937 !important;
}

.gm-auth--popup .gm-auth-brand-text,
.gm-auth--popup .gm-auth-subtitle,
.gm-auth--popup .gm-auth-switch,
.gm-auth--popup .gm-text-muted,
.gm-auth--popup .gm-form-hint,
.gm-auth--popup .gm-form-label {
    color: #6b7280 !important;
}

.gm-auth--popup .gm-auth-tabs {
    background: #e1ebe2 !important;
    border: 1px solid #d1d5db !important;
}

.gm-auth--popup .gm-auth-tab {
    color: #6b7280 !important;
    background: transparent !important;
}

.gm-auth--popup .gm-auth-tab.is-active {
    background: #00d26a !important;
    color: #0a2517 !important;
}

.gm-auth--popup .gm-form-input,
.gm-auth--popup .gm-form-textarea,
.gm-auth--popup .gm-form-select,
.gm-auth--popup .gm-otp-digit {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    caret-color: #1f2937 !important;
}

.gm-auth--popup .gm-form-input::placeholder,
.gm-auth--popup .gm-form-textarea::placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
    opacity: 1 !important;
}

.gm-auth--popup .gm-auth-role {
    background: #e1ebe2 !important;
    border: 1px solid #d1d5db !important;
}

.gm-auth--popup .gm-auth-role:has(input:checked) {
    border-color: #00d26a !important;
    background: rgba(0, 210, 106, 0.12) !important;
}

.gm-auth--popup .gm-btn-primary {
    background: #00d26a !important;
    background-color: #00d26a !important;
    border-color: #00d26a !important;
    color: #0a2517 !important;
}

.gm-auth--popup .gm-btn-secondary {
    background: #e1ebe2 !important;
    background-color: #e1ebe2 !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
}

.gm-auth--popup .gm-auth-link,
.gm-auth--popup .gm-auth-terms-link,
.gm-auth--popup .gm-auth-timer {
    color: #00d26a !important;
}

.gm-auth--popup .gm-auth-terms-label {
    background: rgba(0, 210, 106, 0.06) !important;
    border: 1px solid rgba(0, 210, 106, 0.22) !important;
    color: #1f2937 !important;
}

.gm-auth--popup .gm-auth-brand-mark {
    background: linear-gradient(135deg, #3e5c46, #00d26a) !important;
    color: #0a2517 !important;
    border: 0 !important;
}

.gm-auth--popup .gm-auth-brand-mark .gm-icon,
.gm-auth--popup .gm-auth-brand-mark .dashicons {
    color: #0a2517 !important;
}

.gm-auth-modal-close {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #6b7280 !important;
}

.gm-auth-modal-close:hover {
    background: #e1ebe2 !important;
    border-color: #00d26a !important;
    color: #0a2517 !important;
}
