/* ABV2 VN Auth Modal - Glassmorphism Style */
.abv2-auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.abv2-auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.abv2-auth-modal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #fff;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    position: relative;
}

.abv2-auth-overlay.active .abv2-auth-modal {
    transform: translateY(0);
}

.abv2-auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.abv2-auth-close:hover {
    color: #fff;
}

.abv2-auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.abv2-auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s;
    font-size: 16px;
}

.abv2-auth-tab.active {
    color: #fff;
    border-bottom: 2px solid #07C160;
}

.abv2-auth-form {
    display: none;
}
.abv2-auth-form.active {
    display: block;
}

.abv2-auth-group {
    margin-bottom: 15px;
}

.abv2-auth-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.abv2-auth-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.2);
    color: #fff;
    outline: none;
    font-size: 14px;
    transition: border 0.3s;
    box-sizing: border-box;
}

.abv2-auth-input:focus {
    border-color: #07C160;
}

.abv2-auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: #07C160;
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    margin-top: 10px;
}

.abv2-auth-btn:hover {
    background: #06ad56;
}

.abv2-auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}
.abv2-auth-divider::before,
.abv2-auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255,255,255,0.2);
}
.abv2-auth-divider::before { left: 0; }
.abv2-auth-divider::after { right: 0; }

.abv2-auth-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.abv2-social-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.abv2-social-icon-wrapper:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(7, 193, 96, 0.3);
}

.abv2-social-icon-wrapper i {
    font-size: 24px;
}

/* Telegram Specific Wrapper Fix */
#abv2-tg-widget-container {
    opacity: 0.01; /* Start invisible to prevent jump */
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    left: 0;
    top: 0;
}

#abv2-tg-widget-container iframe {
    width: 60px !important;
    height: 60px !important;
}

/* Google Specific Wrapper Fix */
#btn-social-go {
    width: 60px !important;
    height: 60px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
}

#btn-social-go iframe {
    transform: scale(1.5);
    transform-origin: center;
}

.abv2-btn-tg i { color: #2AABEE; }
.abv2-btn-go i { color: #EA4335; }
.abv2-btn-fb i { color: #1877F2; }

.abv2-auth-msg {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
    display: none;
}
.abv2-auth-msg.error { color: #ff6b6b; display: block; }
.abv2-auth-msg.success { color: #51cf66; display: block; }

/* Triggers - global class to open modal */
.abv2-login-trigger,
.abv2-register-trigger {
    cursor: pointer;
}

/* Submit button loading state */
.abv2-auth-btn:disabled {
    cursor: not-allowed;
}
