/* Forgot Password Styles */

/* Forgot Password Form */
.forgot-password-form {
    margin-bottom: 1.5rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.forgot-password-form.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.forgot-password-form .form-group {
    margin-bottom: 1.5rem;
}

.forgot-password-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.forgot-password-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.forgot-password-form .input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #ff6b8b;
    z-index: 2;
}

.forgot-password-form .input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.forgot-password-form .input-wrapper input:focus {
    outline: none;
    border-color: #ff6b8b;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.1);
}

/* Forgot Password Button */
.forgot-password-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b8b, #ff8fab);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.forgot-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 129, 0.3);
}

.forgot-password-btn:active {
    transform: translateY(0);
}

.forgot-password-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.forgot-password-btn .btn-icon {
    transition: transform 0.3s ease;
}

.forgot-password-btn:hover .btn-icon {
    transform: scale(1.2);
}

/* Back to Login Link */
.back-to-login {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.back-to-login a {
    color: #ff6b8b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-to-login a:hover {
    color: #ff4757;
    text-decoration: underline;
}

/* Reset Password Page Styles */
.reset-password-section {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.reset-password-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(255, 107, 129, 0.1);
    padding: 2rem 2rem 2.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.reset-password-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b8b, #ff8fab, #ff6b8b);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.reset-password-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reset-password-header .login-heart {
    font-size: 3rem;
    color: #ff6b8b;
    margin-bottom: 1rem;
    animation: pulse 2s infinite ease-in-out;
}

.reset-password-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.reset-password-header p {
    color: #666;
    font-size: 1rem;
}

/* Reset Password Form */
.reset-password-form {
    margin-bottom: 1.5rem;
}

.reset-password-form .form-group {
    margin-bottom: 1.5rem;
}

.reset-password-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.reset-password-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.reset-password-form .input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #ff6b8b;
    z-index: 2;
}

.reset-password-form .input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.reset-password-form .input-wrapper input:focus {
    outline: none;
    border-color: #ff6b8b;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.1);
}

.reset-password-form .password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.reset-password-form .password-toggle:hover {
    color: #ff6b8b;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.password-strength-bar {
    height: 4px;
    background: #e1e1e1;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill.weak {
    width: 33%;
    background: #ff4757;
}

.password-strength-fill.medium {
    width: 66%;
    background: #ffa502;
}

.password-strength-fill.strong {
    width: 100%;
    background: #2ed573;
}

.password-strength-text {
    font-size: 0.8rem;
    color: #666;
}

.password-strength-text.weak {
    color: #ff4757;
}

.password-strength-text.medium {
    color: #ffa502;
}

.password-strength-text.strong {
    color: #2ed573;
}

/* Reset Password Button */
.reset-password-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b8b, #ff8fab);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reset-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 129, 0.3);
}

.reset-password-btn:active {
    transform: translateY(0);
}

.reset-password-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.reset-password-btn .btn-icon {
    transition: transform 0.3s ease;
}

.reset-password-btn:hover .btn-icon {
    transform: scale(1.2);
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error States */
.input-error {
    border-color: #ff4757 !important;
    background-color: #fff5f5 !important;
}

.error-message {
    color: #ff4757;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.error-message i {
    font-size: 0.9rem;
}

/* Success States */
.success-message {
    color: #2ed573;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f0fff4;
    border: 1px solid #2ed573;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message i {
    font-size: 1.1rem;
}

/* Info Messages */
.info-message {
    color: #3742fa;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9ff;
    border: 1px solid #3742fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-message i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reset-password-section {
        padding: 1rem;
        min-height: 80vh;
    }
    
    .reset-password-container {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .reset-password-header h2 {
        font-size: 1.5rem;
    }
    
    .forgot-password-form .input-wrapper input,
    .reset-password-form .input-wrapper input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .forgot-password-form .input-wrapper i,
    .reset-password-form .input-wrapper i {
        left: 0.8rem;
        font-size: 0.9rem;
    }
    
    .reset-password-form .password-toggle {
        right: 0.8rem;
    }
}

@media (max-width: 480px) {
    .reset-password-container {
        padding: 1.5rem 1rem;
    }
    
    .reset-password-header .login-heart {
        font-size: 2.5rem;
    }
    
    .reset-password-header h2 {
        font-size: 1.3rem;
    }
}

/* Animation for form transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.form-transition-in {
    animation: fadeInUp 0.4s ease-out;
}

.form-transition-out {
    animation: fadeOutDown 0.4s ease-out;
}

/* Pulse animation for heart icon */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}