/* ==========================================
 * HEADER ACCOUNT & NÚT ĐĂNG NHẬP
 * ========================================== */
.veridu-header-login-btn {
    background: var(--vd-auth-primary, #b71c1c);
    color: #fff;
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-family: inherit;
    white-space: nowrap;
}
.veridu-header-login-btn:hover { filter: brightness(0.9); }
.veridu-icon-margin { margin-left: 6px; }

/* ==========================================
 * NATIVE POPUP OVERLAY (VERIDU)
 * ========================================== */
.veridu-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 999999; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.veridu-popup-overlay.vd-active { opacity: 1; }
.veridu-popup-content { position: relative; width: 100%; max-width: 440px; transform: translateY(30px); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); margin: 20px; max-height: 95vh; overflow-y: auto; scrollbar-width: none;}
.veridu-popup-content::-webkit-scrollbar { display: none; }
.veridu-popup-overlay.vd-active .veridu-popup-content { transform: translateY(0); }
.veridu-popup-close { position: absolute; top: -12px; right: -12px; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #333; border: none; font-size: 16px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 100; display: flex; align-items: center; justify-content: center; transition: 0.2s; line-height: 1; }
.veridu-popup-close:hover { background: #ef4444; color: #fff; transform: scale(1.1); }
/* Nếu form đặt trong trang thường (không phải popup), ẩn nút đóng đi */
.veridu-auth-wrapper:not(.in-popup) .veridu-popup-close { display: none; }
.veridu-popup-content .veridu-auth-wrapper { margin: 0 !important; max-width: 100% !important; }

/* ==========================================
 * BÉ CHIÊN CON (MASCOT)
 * ========================================== */
.veridu-mascot-container { width: 140px; height: 140px; margin: 0 auto -20px auto; position: relative; z-index: 10; }
.veridu-mascot-container.mascot-blind .mascot-hands { opacity: 1 !important; transform: translateY(-8px) scale(1.05); }

/* ==========================================
 * FORM KÍNH MỜ (GLASSMORPHISM)
 * ========================================== */
.veridu-auth-wrapper { 
    max-width: 420px !important; 
    margin: 0 auto !important; 
    width: 100%; 
    background: rgba(20, 20, 20, 0.4) !important; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 24px; 
    padding: 40px 35px 35px 35px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); 
}
.veridu-custom-form label { display: block; color: #fdfaf6; font-weight: 600; margin-bottom: 8px; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

/* Các Input & Button */
.veridu-input-group { margin-bottom: 20px; }
.veridu-input-group input[type="email"], 
.veridu-input-group input[type="password"], 
.veridu-input-group input[type="text"], 
.veridu-input-group input[type="tel"] { 
    width: 100%; padding: 14px 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); 
    background: rgba(255,255,255,0.9); color: #333; font-family: inherit; font-size: 15px; 
    outline: none; transition: 0.3s; box-sizing: border-box;
}
.veridu-input-group input:focus { background: #fff; border-color: var(--vd-auth-accent, #f1c40f); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
.veridu-pwd-input { padding-right: 40px !important; }

.veridu-submit-btn { width: 100%; background: var(--vd-auth-primary, #b71c1c); color: #fff; padding: 15px; border: none; border-radius: 8px; font-weight: bold; font-size: 16px; cursor: pointer; transition: 0.3s; margin-top: 10px; font-family: inherit; }
.veridu-submit-btn:hover { filter: brightness(0.9); }

/* Các thẻ tiện ích (Utility Classes) */
.veridu-hidden-message { display: none; text-align: center; margin-bottom: 15px; padding: 10px; border-radius: 6px; font-size: 14px; font-weight: bold; }
.veridu-flex-row { display: flex; gap: 10px; }
.veridu-flex-1 { flex: 1; }
.veridu-flex-2 { flex: 2; }
.veridu-flex-between { display: flex; justify-content: space-between; align-items: center; }
.veridu-mb-0 { margin-bottom: 0; }
.veridu-forgot-link { font-size: 13px; color: var(--vd-auth-accent, #f1c40f); text-decoration: none; }
.veridu-pwd-relative { position: relative; margin-top: 8px; }

/* Nút Con mắt */
.veridu-toggle-pwd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: none; font-size: 18px; cursor: pointer; z-index: 100; outline: none; box-shadow: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; opacity: 0.7; transition: 0.2s; }
.veridu-toggle-pwd:hover { opacity: 1; }

/* Thanh đo sức mạnh mật khẩu */
.veridu-pwd-strength-container { height: 4px; background: rgba(255,255,255,0.2); margin-top: 8px; border-radius: 2px; overflow: hidden; }
#veridu_pwd_bar { height: 100%; width: 0; background: #e74c3c; transition: 0.3s; }
#veridu_pwd_text { font-size: 11px; margin-top: 4px; text-align: right; color: rgba(255,255,255,0.6); }

/* Checkbox điều khoản */
.veridu-mt-25 { margin-top: 25px; margin-bottom: 20px; }
.veridu-terms-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: normal; cursor: pointer; text-shadow: none; line-height: 1.4; }
.veridu-terms-checkbox { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--vd-auth-primary, #b71c1c); }
.veridu-terms-link { color: var(--vd-auth-accent, #f1c40f); text-decoration: underline; }

/* Link chuyển đổi Đăng ký / Đăng nhập */
.thapgia-switch-text { text-align: center; font-size: 15px; color: #ccc; margin-top: 25px; padding-top: 20px; border-top: 1px dashed rgba(255,255,255,0.2); }
.thapgia-switch-text a { color: var(--vd-auth-accent, #f1c40f); font-weight: 600; text-decoration: none; transition: all 0.3s ease; }
.thapgia-switch-text a:hover { color: #fff; text-decoration: underline; }

/* Hiệu ứng chuyển Form */
.veridu-smooth-fade { animation: smoothFadeIn 0.4s ease forwards; }
@keyframes smoothFadeIn { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

/* ==========================================
 * FORM OTP
 * ========================================== */
.veridu-otp-header { text-align: center; margin-bottom: 25px; }
.veridu-otp-header h3 { color: #fdfaf6; margin: 0 0 10px 0; font-family: inherit; }
.veridu-otp-header p { color: #ccc; font-size: 14px; margin: 0; }
.veridu-otp-input { text-align: center; font-size: 32px; letter-spacing: 12px; font-weight: bold; color: var(--vd-auth-primary, #b71c1c); padding: 20px; }

/* ==========================================
 * CHÍNH SÁCH RECAPTCHA
 * ========================================== */
.grecaptcha-badge { visibility: hidden !important; }
.veridu-recaptcha-terms { text-align: center; font-size: 11.5px; color: rgba(255, 255, 255, 0.4); margin-top: 25px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); line-height: 1.5; }
.veridu-recaptcha-terms a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: 0.2s ease; }
.veridu-recaptcha-terms a:hover { color: var(--vd-auth-accent, #f1c40f); text-decoration: underline; }