/* Forgot Password Page Styles */

/* Import base styles */
@import url('login.css');

/* Custom styles for forgot password page */
.forgot-password-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-password-form-container {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

.forgot-password-title {
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #DBB63F, #c19b2e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Password Requirements Styling - Fix visibility */
.forgot-password-form-container .password-requirements {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #007bff;
    opacity: 1;  /* Changed from 0 to 1 */
    transform: translateX(0);  /* Changed from translateX(-10px) to translateX(0) */
    transition: all 0.3s ease;
    display: block;  /* Changed from none to block */
}

.forgot-password-form-container .password-requirements.show {
    opacity: 1;
    transform: translateX(0);
}

.forgot-password-form-container .password-requirements.hide {
    opacity: 0;
    transform: translateX(-10px);
}

.requirements-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

.requirements-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.requirement-item.pending {
    color: #6c757d;
}

.requirement-item.valid {
    color: #28a745;
}

.requirement-item.invalid {
    color: #dc3545;
}

.requirement-icon {
    font-size: 12px;
    transition: all 0.3s ease;
}

.requirement-item.pending .requirement-icon {
    color: #6c757d;
}

.requirement-item.valid .requirement-icon {
    color: #28a745;
}

.requirement-item.invalid .requirement-icon {
    color: #dc3545;
}

/* Form Controls - Override login.css */
.forgot-password-form-container .form-group {
    margin-bottom: 25px;
    position: relative;
}

.forgot-password-form-container .form-control {
    width: 392px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    overflow-x: auto;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #DBB63F #f8f9fa;
}

/* Custom scrollbar styles for WebKit browsers */
.forgot-password-form-container .form-control::-webkit-scrollbar {
    height: 6px;
}

.forgot-password-form-container .form-control::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.forgot-password-form-container .form-control::-webkit-scrollbar-thumb {
    background: #DBB63F;
    border-radius: 3px;
}

.forgot-password-form-container .form-control::-webkit-scrollbar-thumb:hover {
    background: #c19b2e;
}

.forgot-password-form-container .form-control:focus {
    outline: none;
    border-color: #DBB63F;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(219, 182, 63, 0.1);
}

.forgot-password-form-container .form-control::placeholder {
    color: #6c757d;
    font-family: 'Cairo', sans-serif;
}

/* Password Field Specific - Override login.css positioning */
.forgot-password-form-container .password-field {
    position: relative;
}

.forgot-password-form-container .password-field .form-control {
    padding-right: 15px;
    padding-left: 50px;
    overflow-x: auto;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #DBB63F #f8f9fa;
}

.forgot-password-form-container .password-field .form-control::-webkit-scrollbar {
    height: 6px;
}

.forgot-password-form-container .password-field .form-control::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.forgot-password-form-container .password-field .form-control::-webkit-scrollbar-thumb {
    background: #DBB63F;
    border-radius: 3px;
}

.forgot-password-form-container .password-field .form-control::-webkit-scrollbar-thumb:hover {
    background: #c19b2e;
}

/* Override the password toggle positioning from login.css */
.forgot-password-form-container .password-toggle {
    position: absolute !important;
    left: 15px !important;  /* Force left positioning */
    right: auto !important; /* Remove right positioning */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.forgot-password-form-container .password-toggle:hover {
    color: #DBB63F;
    background-color: rgba(219, 182, 63, 0.1);
}

.forgot-password-form-container .password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Submit Button - Match login button styling */
.forgot-password-form-container .forgot-password-btn {
    width: 392px;
    height: 40px;
    background: linear-gradient(135deg, #DBB63F 0%, #c19b2e 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px 0;
}

.forgot-password-form-container .forgot-password-btn:hover {
    background: linear-gradient(135deg, #c19b2e 0%, #a88a26 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(219, 182, 63, 0.3);
}

.forgot-password-form-container .forgot-password-btn:active {
    transform: translateY(0);
}

.forgot-password-form-container .forgot-password-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Login Links - Center the link */
.forgot-password-form-container .login-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forgot-password-form-container .login-links .login-link {
    color: #DBB63F;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    text-align: center;
    display: inline-block;
}

.forgot-password-form-container .login-links .login-link:hover {
    color: #c19b2e;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forgot-password-form-container {
        margin: 20px;
        padding: 30px;
        width: 95%;
    }
    
    .forgot-password-title {
        font-size: 1.8rem;
    }
    
    .forgot-password-form-container .form-control,
    .forgot-password-form-container .forgot-password-btn {
        width: 100%;
        max-width: 392px;
    }
}

/* Animation for requirements */
.requirement-item {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.requirement-item:nth-child(1) { animation-delay: 0.1s; }
.requirement-item:nth-child(2) { animation-delay: 0.2s; }
.requirement-item:nth-child(3) { animation-delay: 0.3s; }
.requirement-item:nth-child(4) { animation-delay: 0.4s; }
.requirement-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus effects */
.forgot-password-form-container .form-group.focused .form-control {
    border-color: #DBB63F;
    background: white;
    box-shadow: 0 0 0 3px rgba(219, 182, 63, 0.1);
}

/* Success state */
.forgot-password-form-container .form-control.is-valid {
    border-color: #28a745;
    background: #f8fff9;
}

.forgot-password-form-container .form-control.is-invalid {
    border-color: #dc3545;
    background: #fff8f8;
}

/* Loading state */
.forgot-password-form-container .forgot-password-btn.loading {
    position: relative;
    color: transparent;
}

.forgot-password-form-container .forgot-password-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive adjustments for requirements */
@media (max-width: 576px) {
    .requirements-list {
        grid-template-columns: 1fr;
    }
}
