.auth-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

.auth-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-content {
    background: #0d1117;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 20px;
}

.close-popup:hover {
    color: #fff;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.auth-header p {
    color: #999;
    font-size: 14px;
}

.auth-header p a {
    color: #ffd700;
    text-decoration: none;
}

.auth-header p a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: #fff;
    font-size: 15px;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
}

/* Password visibility toggle */
.password-wrapper {
    position: relative;
    display: block;
}

/* Stronger specificity for popup */
.auth-popup .password-wrapper { position: relative; }
.auth-popup .password-wrapper input { padding-right: 48px; position: relative; z-index: 1; }
.auth-popup .password-wrapper .toggle-password {
    position: absolute;
    right: 8px;
    top: 0;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    z-index: 3;
}
.auth-popup .password-wrapper .toggle-password:hover { color: #fff; }
.auth-popup .password-wrapper .toggle-password i { pointer-events: none; }

.password-wrapper input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 0;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.toggle-password i { pointer-events: none; }

.toggle-password:focus {
    outline: none;
}

.toggle-password .fa-eye-slash { display: none !important; }
.toggle-password.active .fa-eye { display: none !important; }
.toggle-password.active .fa-eye-slash { display: inline !important; }

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

.auth-btn:hover {
    background: #ffed4a;
}

.social-login {
    text-align: center;
}

.social-login .google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.forgot-password {
    display: block;
    text-align: center;
    color: #ffd700;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Thêm animation cho popup */
.auth-content {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Notification Styles - Center Popup */
.success-notification,
.error-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    min-width: 350px;
    max-width: 450px;
}

.error-notification {
    border-color: rgba(220, 53, 69, 0.3);
}

.success-notification.show,
.error-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.notification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.notification-content i {
    font-size: 60px;
    margin-bottom: 10px;
}

.success-notification .notification-content i {
    color: #28a745;
    animation: checkmarkAnimation 0.6s ease-in-out;
}

.error-notification .notification-content i {
    color: #dc3545;
    animation: shakeAnimation 0.6s ease-in-out;
}

.notification-content span {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 10px;
}

/* Animation cho checkmark */
@keyframes checkmarkAnimation {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation cho error */
@keyframes shakeAnimation {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Overlay background */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-overlay.show {
    opacity: 1;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .success-notification,
    .error-notification {
        min-width: 300px;
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .notification-content i {
        font-size: 50px;
    }
    
    .notification-content span {
        font-size: 16px;
    }
}