/* Popup Overlay */
.tabsub-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Popup Content */
.tabsub-popup-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: tabsub-popup-fade 0.3s ease;
}

@keyframes tabsub-popup-fade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup Header */
.tabsub-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
}

.tabsub-popup-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 22px;
}

.tabsub-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s;
}

.tabsub-popup-close:hover {
    color: #e74c3c;
}

/* Form Styles */
.tabsub-popup-content .form-group {
    margin-bottom: 20px;
}

.tabsub-popup-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.tabsub-popup-content input[type="text"],
.tabsub-popup-content input[type="email"],
.tabsub-popup-content input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.tabsub-popup-content input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Submit Button */
.tabsub-popup-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.tabsub-popup-submit:hover {
    background: linear-gradient(135deg, #2980b9, #1f639b);
    transform: translateY(-2px);
}

/* Message */
.tabsub-popup-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.tabsub-popup-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tabsub-popup-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login Container */
.tabsub-login-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tabsub-login-container p {
    font-size: 16px;
    color: #495057;
    margin-bottom: 20px;
}

/* Login Button */
.tabsub-login-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.tabsub-login-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
}

/* Register Link */
.tabsub-register-link {
    background: none;
    border: none;
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.tabsub-register-link:hover {
    color: #2980b9;
}

/* Checkbox */
.tabsub-popup-content input[type="checkbox"] {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .tabsub-popup-content {
        width: 95%;
        padding: 20px;
    }
    
    .tabsub-popup-header h3 {
        font-size: 20px;
    }
}


/* Style reCAPTCHA */
.recaptcha-container {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.g-recaptcha {
    transform: scale(0.95);
    transform-origin: 0 0;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
}