/**
 * Password Reset Styles
 * Styles for forgot password modal and reset password page
 */

/* =============================================
   Forgot Password Link (Login Page)
   ============================================= */
.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #5a8fc2;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    text-decoration: underline;
    color: #4a7fb2;
}

/* =============================================
   Forgot Password Modal
   ============================================= */
#forgotPasswordModal .modal-body {
    padding: 20px;
}

#forgotPasswordModal .form-control {
    margin-bottom: 15px;
}

#forgotPasswordModal .modal-header {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

#forgotPasswordModal .modal-title {
    color: #333;
    font-weight: 600;
}

/* Message styling in modal */
.forgot-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.forgot-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.forgot-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* =============================================
   Password Field Wrapper & Toggle
   ============================================= */
.password-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
    font-size: 16px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #333;
}

/* Make room for the toggle icon in input fields */
.password-wrapper .form-control {
    padding-right: 35px;
}

/* =============================================
   Password Match Indicator
   ============================================= */
.password-match-indicator {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    transition: all 0.3s ease;
}

.password-match-indicator.valid {
    color: #27ae60;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.password-match-indicator.invalid {
    color: #e74c3c;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.password-match-indicator i {
    margin-right: 5px;
}

/* =============================================
   Password Strength Indicator
   ============================================= */
.password-strength {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 12px;
    min-height: 18px;
}

.password-strength span {
    font-weight: 600;
}

/* =============================================
   Reset Password Page Error Box
   ============================================= */
.error-box {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-box i {
    margin-right: 8px;
}

/* =============================================
   Button States
   ============================================= */
#sendResetLinkBtn:disabled,
#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 768px) {
    .forgot-password-link {
        font-size: 13px;
        margin-top: 12px;
    }

    #forgotPasswordModal .modal-dialog {
        margin: 10px;
    }

    .password-toggle {
        right: 8px;
        font-size: 14px;
    }
}

/* =============================================
   Animation for Success Messages
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-message.success,
.forgot-message.error {
    animation: fadeIn 0.3s ease-in-out;
}

.password-match-indicator.valid,
.password-match-indicator.invalid {
    animation: fadeIn 0.3s ease-in-out;
}