/* Forgot Password Modal Styles */
.forgot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.forgot-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.forgot-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(184, 207, 45, 0.1);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
    position: relative;
}

.forgot-modal-overlay.active .forgot-modal {
    transform: translateY(0) scale(1);
}

.forgot-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(184, 207, 45, 0.05), rgba(184, 207, 45, 0.02));
}

.forgot-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5016;
    margin: 0;
}

.forgot-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.forgot-modal-close:hover {
    background: rgba(184, 207, 45, 0.1);
    color: #6b7240;
}

.forgot-modal-body {
    padding: 24px;
    min-height: 200px;
}

.forgot-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.forgot-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.forgot-form-group {
    margin-bottom: 20px;
}

.forgot-form-group label {
    display: block;
    font-weight: 500;
    color: #4a5016;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.forgot-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e4e8d6;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fafbf8;
}

.forgot-input:focus {
    outline: none;
    border-color: #b8cf2d;
    box-shadow: 0 0 0 3px rgba(184, 207, 45, 0.15);
}

.forgot-input::placeholder {
    color: #8b9462;
}

.forgot-button {
    background: linear-gradient(135deg, #b8cf2d, #9fb326);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.forgot-button:hover {
    background: linear-gradient(135deg, #a5c028, #8fa122);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 207, 45, 0.3);
}

.forgot-button:active {
    transform: translateY(0);
}

.forgot-button:disabled {
    background: linear-gradient(135deg, #d4d8c4, #c7ccb8);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.forgot-button.loading {
    color: transparent;
}

.forgot-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.forgot-secondary-button {
    background: #f5f7f0;
    color: #6b7240;
    border: 1px solid #e4e8d6;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 12px;
}

.forgot-secondary-button:hover {
    background: #ecf0e5;
    border-color: #d1d8c2;
}

.forgot-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.forgot-success-message {
    text-align: center;
    padding: 20px;
}

.forgot-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #b8cf2d, #a5c028);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: successPulse 0.6s ease-out;
}

.forgot-success-icon::after {
    content: '✓';
    color: white;
    font-size: 24px;
    font-weight: bold;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.forgot-success-text {
    color: #374151;
    font-size: 16px;
    line-height: 1.5;
}

/* Step indicator */
.forgot-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.forgot-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e4e8d6;
    transition: all 0.3s ease;
}

.forgot-step-dot.active {
    background: #b8cf2d;
    transform: scale(1.2);
}

.forgot-step-dot.completed {
    background: #8fa122;
}

/* Responsive Design */
@media (max-width: 480px) {
    .forgot-modal {
        width: 95%;
        margin: 20px;
    }
    
    .forgot-modal-header,
    .forgot-modal-body,
    .forgot-modal-footer {
        padding: 16px;
    }
    
    .forgot-modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .forgot-button,
    .forgot-secondary-button {
        width: 100%;
        margin: 0;
    }
}

/* Dark theme support */
.dark .forgot-modal {
    background: #1f2937;
    color: #f9fafb;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(184, 207, 45, 0.2);
}

.dark .forgot-modal-header {
    border-bottom-color: #374151;
    background: linear-gradient(135deg, rgba(184, 207, 45, 0.1), rgba(184, 207, 45, 0.05));
}

.dark .forgot-modal-title {
    color: #c9d96f;
}

.dark .forgot-modal-close {
    color: #9ca3af;
}

.dark .forgot-modal-close:hover {
    background: rgba(184, 207, 45, 0.15);
    color: #c9d96f;
}

.dark .forgot-form-group label {
    color: #c9d96f;
}

.dark .forgot-input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark .forgot-input:focus {
    border-color: #b8cf2d;
    box-shadow: 0 0 0 3px rgba(184, 207, 45, 0.2);
}

.dark .forgot-input::placeholder {
    color: #8b9462;
}

.dark .forgot-secondary-button {
    background: #374151;
    color: #c9d96f;
    border-color: #4b5563;
}

.dark .forgot-secondary-button:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.dark .forgot-success-text {
    color: #e5e7eb;
}

/* SweetAlert2 Reset Styles */
.swal2-popup {
    color: #545454 !important;
}

.swal2-title {
    color: #595959 !important;
}

.swal2-content {
    color: #545454 !important;
}

.swal2-html-container {
    color: #545454 !important;
}