/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.popup-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    position: relative;
    padding: 30px;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-overlay.active .popup-card {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--primary-color);
}

.popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.popup-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.popup-header p {
    color: #666;
    font-size: 14px;
}

.popup-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.popup-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.popup-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.popup-content {
    position: relative;
    overflow: hidden;
}

.popup-form {
    display: none;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup-form.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer .btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
}

.form-footer .social-login {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.social-login-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-login-btn:hover {
    transform: translateY(-3px);
}

.social-login-btn.google {
    background-color: #DB4437;
}

.social-login-btn.facebook {
    background-color: #4267B2;
}

.social-login-btn.twitter {
    background-color: #1DA1F2;
}

.form-footer .divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.form-footer .divider::before,
.form-footer .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #eee;
}

.form-footer .divider span {
    padding: 0 10px;
    color: #666;
    font-size: 12px;
}

.form-footer .form-link {
    font-size: 14px;
    color: #666;
}

.form-footer .form-link a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Password Reset Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e6f5 50%, #d5ddf8 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(58, 86, 228, 0.15), rgba(108, 99, 255, 0.1));
    z-index: 0;
    filter: blur(60px);
    animation: pulse 8s infinite alternate;
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 71, 0.1), rgba(255, 107, 71, 0.05));
    z-index: 0;
    filter: blur(60px);
    animation: pulse 10s infinite alternate-reverse;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.auth-card {
    z-index: 1;
}

.auth-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
    transition: all 0.3s ease;
}

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

.auth-card h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e6f5;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.step.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 3px rgba(58, 86, 228, 0.2);
}

.step.completed {
    background-color: var(--success);
    color: white;
}

.step-line {
    flex: 1;
    height: 3px;
    background-color: #e0e6f5;
    margin: 0 5px;
    max-width: 50px;
    transition: all 0.3s ease;
}

.step-line.active {
    background-color: var(--primary-color);
}

.reset-step {
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
}

.reset-step p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.resend-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.resend-link a {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.success-icon {
    text-align: center;
    font-size: 60px;
    color: var(--success);
    margin: 20px 0;
    animation: scaleIn 0.5s ease-in-out;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.reset-success h3 {
    text-align: center;
    color: var(--success);
    margin-bottom: 10px;
}

.reset-success p {
    text-align: center;
    margin-bottom: 20px;
}

.reset-success .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

/* Enhanced button styles for reset password page */
.auth-container .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-container .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.auth-container .btn:active::after {
    width: 300px;
    height: 300px;
}

.auth-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 86, 228, 0.25);
}

.auth-container input {
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.auth-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 86, 228, 0.1);
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .popup-card {
        width: 95%;
        padding: 15px;
        max-height: 85vh;
    }
    
    .popup-header h2 {
        font-size: 20px;
    }
    
    .popup-header p {
        font-size: 14px;
    }
    
    .popup-tabs {
        margin-bottom: 15px;
    }
    
    .popup-tab {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .form-group input {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .social-login-btn {
        width: 40px;
        height: 40px;
    }
    
    .auth-container {
        padding: 20px 10px;
    }
    
    .auth-card {
        padding: 20px;
    }
}