/* 
 * ezAccount System - Forgot Password Page Styles
 * Clean and professional design with validation indicators
 */

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --error-color: #dc3545;
}

/* Global body styles with gradient background */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card container styles */
.card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Card header styles */
.card-header {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 25px;
    border-bottom: 0;
}

/* Card header title styles */
.card-header h3 {
    font-weight: 700;
    margin: 0;
}

/* Card body styles */
.card-body {
    padding: 30px;
}

/* Instruction text styles */
.instruction-text {
    color: #6c757d;
    margin-bottom: 25px;
    text-align: center;
}

/* Input group container styles */
.input-group {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    margin-bottom: 5px;
}

/* Input group focus effect */
.input-group:focus-within {
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
}

/* Input group text styles (icons) */
.input-group-text {
    background: white;
    border-right: none;
    padding: 0 15px;
    color: var(--primary-color);
    z-index: 1;
    /* Ensure it appears above other elements */
}

/* Form control styles */
.form-control {
    border-radius: 8px;
    padding: 12px 20px;
    /* Reduced right padding to prevent overlap */
    border: 1px solid #ddd;
    transition: all 0.3s;
}

/* Form control focus effect */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

/* Position relative for form-floating to position validation icons */
.form-floating.position-relative {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

/* Validation icon container positioned outside the input field */
.validation-icon-container {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: white;
    padding: 0 5px;
}

/* Validation icon styles */
.validation-icon-container i {
    font-size: 18px;
}

/* Success icon color */
.fa-check-circle {
    color: var(--success-color);
}

/* Error icon color */
.fa-times-circle {
    color: var(--error-color);
}

/* Error message styles */
.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 20px;
}

/* Password requirements container styles */
.password-requirements {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Password requirement title styles */
.requirement-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

/* Password requirement list styles */
.requirement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Password requirement item styles */
.requirement-list li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #6c757d;
}

/* Password requirement icon styles */
.requirement-list i {
    margin-right: 8px;
    width: 16px;
}

/* Send code button styles */
.btn-send-code {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 0 15px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    border-radius: 0 8px 8px 0;
}

/* Send code button hover effect */
.btn-send-code:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    /* Ensure text stays white on hover */
}

/* Send code button disabled state */
.btn-send-code:disabled {
    background: #6c757d;
    cursor: not-allowed;
    color: white;
    /* Ensure text stays white when disabled */
}

/* Timer display styles */
.timer-text {
    color: #6c757d;
    font-weight: 500;
}

/* Countdown timer styles */
#countdown {
    color: var(--error-color);
    font-weight: 700;
}

/* Reset password button styles */
.btn-reset {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.3);
}

/* Reset password button hover effect */
.btn-reset:hover:not(:disabled) {
    background: var(--secondary-color);
    color: white;
    /* Ensure text stays white on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(67, 97, 238, 0.4);
}

/* Reset password button disabled state */
.btn-reset:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: white;
    /* Ensure text stays white when disabled */
}

/* Back link styles */
.back-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

/* Back link hover effect */
.back-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Notification Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-body {
    padding: 30px;
}

.notification-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.notification-icon.success {
    color: var(--success-color);
}

.notification-icon.error {
    color: var(--error-color);
}

.notification-title {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.5rem;
}

.notification-message {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 1rem;
}

.notification-button {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.3);
}

.notification-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(67, 97, 238, 0.4);
    color: white;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-backdrop.show {
    opacity: 1;
}

/* Prevent closing modal on backdrop click */
.modal {
    pointer-events: none;
}

.modal-dialog {
    pointer-events: auto;
}

/* Popup modal enhancements */
#notificationModal .modal-content {
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#notificationModal .modal-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Notification buttons (OK & Back to Login) */
#notificationButton,
#notificationModal .btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}

#notificationButton:hover,
#notificationModal .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.45);
}

#notificationButton:active,
#notificationModal .btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(67, 97, 238, 0.3);
}

/* Responsive adjustments for mobile devices */
@media (max-width: 576px) {
    .card {
        box-shadow: none;
    }

    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-send-code {
        padding: 10px;
        font-size: 14px;
    }

    .validation-icon-container {
        right: 8px;
    }

    /* Adjust form control padding for mobile */
    .form-control {
        padding: 12px 40px 12px 15px;
    }

    /* Notification modal adjustments for mobile */
    .modal-body {
        padding: 20px;
    }

    .notification-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .notification-title {
        font-size: 1.3rem;
    }

    .notification-message {
        font-size: 0.9rem;
    }

    .notification-button {
        padding: 10px 25px;
    }
}