/* Forgot Password Specific Styles */
.forgot-password-card {
    max-width: 450px;
    margin-top: 8rem;
    margin-bottom: 2rem;
}

/* OTP Input Styles */
.otp-instruction {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.otp-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

.otp-input.filled {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.otp-input.error {
    border-color: #667eea;
    animation: shake 0.5s ease-in-out;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.progress-step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e1e8ed;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.progress-step.completed {
    background: #27ae60;
}

/* Success Animation */
.success-animation {
    text-align: center;
    padding: 2rem;
}

.success-animation i {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
    animation: successBounce 0.6s ease-out;
}

.success-animation h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-animation p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.success-animation .countdown {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 1rem 0;
    animation: pulse 1s infinite;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .otp-inputs {
        gap: 0.3rem;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .otp-inputs {
        gap: 0.2rem;
    }
    
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Enhanced animations */
.forgot-password-card {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.auth-header {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.auth-form {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.auth-footer {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Loading states */
.auth-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-btn.loading span {
    opacity: 0;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error states */
.input-wrapper.error input {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    font-size: 0.9rem;
}

/* Success states */
.input-wrapper.success input {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.success-message {
    color: #27ae60;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message i {
    font-size: 0.9rem;
}

/* Forgot Password Page Specific Styles */
.auth-container {
    min-height: 100vh;
    padding-top: var(--auth-container-padding-top);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.forgot-password-card {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: var(--auth-card-padding);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-wrapper i {
    position: absolute;
    right: 15px;
    color: var(--light-text);
    font-size: 1.1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-wrapper input::placeholder {
    color: var(--light-text);
}

.password-toggle {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--secondary-color);
}

/* Step indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e1e8ed;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.step-dot.completed {
    background: #27ae60;
}

/* OTP inputs */
.otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.otp-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.otp-input.filled {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.otp-input.error {
    border-color: #667eea;
    animation: shake 0.5s ease-in-out;
}

/* Resend OTP button */
.resend-otp {
    background: none;
    border: none;
    color: var(--secondary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.resend-otp:hover {
    color: var(--primary-color);
}

.resend-otp:disabled {
    color: var(--light-text);
    cursor: not-allowed;
    text-decoration: none;
}

/* Success message */
.reset-success {
    text-align: center;
    padding: 2rem;
}

.reset-success i {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
    animation: successBounce 0.6s ease-out;
}

.reset-success h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reset-success p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Responsive adjustments for forgot password page */
@media (max-width: 768px) {
    .auth-container {
        padding-top: var(--auth-container-padding-top-mobile);
    }
    
    .forgot-password-card {
        padding: var(--auth-card-padding-mobile);
        margin: var(--auth-card-margin);
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .otp-inputs {
        gap: 0.3rem;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding-top: var(--auth-container-padding-top-small);
    }
    
    .forgot-password-card {
        padding: var(--auth-card-padding-small);
        margin: var(--auth-card-margin-small);
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .otp-inputs {
        gap: 0.2rem;
    }
    
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Password field specific styling */
.input-wrapper.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper.password-field input {
    flex: 1;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.input-wrapper.password-field input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-wrapper.password-field .password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 3;
    padding: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0;
}

.input-wrapper.password-field .password-toggle:hover {
    color: var(--secondary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper.password-field .password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.input-wrapper.password-field .password-toggle i {
    font-size: 1rem;
    pointer-events: none;
} 