/* passwordReset.css */
.reset-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.reset-modal {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

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

.reset-modal-header {
    background: #7b60f4;
    color: white;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reset-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.reset-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.reset-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.reset-modal-body {
    padding: 25px;
}

.reset-modal .step {
    display: none;
}

.reset-modal .step.active {
    display: block;
}

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

.reset-modal .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.2s;
    box-sizing: border-box;
}

.reset-modal .form-control:focus {
    outline: none;
    border-color: #7b60f4;
}

.reset-modal .btn {
    background: #7b60f4;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.reset-modal .btn:hover:not(:disabled) {
    background: #755ad8;
}

.reset-modal .btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cooldown-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
}

.cooldown-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

#cooldownTimer {
    font-weight: bold;
    color: #7b60f4;
}

/* Success/Error Alert */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 20px;
}

.custom-alert {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    text-align: center;
}

.custom-alert.success .custom-alert-icon {
    color: #28a745;
}

.custom-alert.error .custom-alert-icon {
    color: #dc3545;
}

.custom-alert-header {
    padding: 20px 20px 10px;
}

.custom-alert-icon {
    font-size: 40px;
    margin-bottom: 10px;
    font-weight: bold;
}

.custom-alert-body {
    padding: 0 20px 15px;
}

.custom-alert-body h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.custom-alert-body p {
    margin: 0;
    color: #666;
    line-height: 1.4;
    font-size: 14px;
}

.custom-alert-actions {
    padding: 15px 20px 20px;
}

.custom-alert-btn {
    background: #7b60f4;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-alert-btn:hover {
    background: #755ad8;
}

/* Responsive */
@media (max-width: 480px) {
    .reset-modal-overlay {
        padding: 10px;
    }
    
    .reset-modal {
        max-width: 100%;
    }
    
    .reset-modal-body {
        padding: 20px;
    }
    
    .reset-modal-header {
        padding: 15px;
    }
    
    .custom-alert {
        max-width: 100%;
        margin: 10px;
    }
}

/* Link Styling */
.resend-code-link {
    color: #7b60f4;
    text-decoration: none;
    font-size: 13px;
}

.resend-code-link:hover {
    text-decoration: underline;
}

/* Input focus effect */
.reset-modal .form-control:focus {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Loading state */
.btn-loading {
    display: none;
}

.btn:disabled .btn-text {
    display: none;
}

.btn:disabled .btn-loading {
    display: inline;
}