/* =============================================================================
   PASSWORD RESET STYLES - CONSOLIDATED VERSION
   ============================================================================= */

/* Step indicator styling */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step.active {
    background-color: var(--primary-color, #438d9a);
    color: white;
}

.step.completed {
    background-color: #28a745;
    color: white;
}

.step-line {
    width: 80px;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 10px;
}

/* Account found section */
.account-found {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.account-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.account-info i {
    font-size: 24px;
    color: #155724;
    margin-top: 2px;
    flex-shrink: 0;
}

.account-details p {
    margin: 5px 0;
    color: #155724;
    line-height: 1.5;
}

.account-details p:first-child {
    margin-top: 0;
}

.account-details p:last-child {
    margin-bottom: 0;
}

.masked-email {
    font-family: monospace;
    background-color: #b8daff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

/* Reset header styling */
.reset-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.reset-header i {
    font-size: 48px;
    color: var(--primary-color, #438d9a);
    margin-bottom: 15px;
    display: block;
}

.reset-header h2 {
    color: var(--primary-color, #438d9a);
    margin: 0 0 10px 0;
}

.reset-header p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

.reset-header strong {
    color: var(--primary-color, #438d9a);
    font-family: monospace;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Password requirements styling */
.password-requirements {
    background-color: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.password-requirements h4 {
    color: var(--primary-color, #438d9a);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.password-requirements li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #495057;
}

.password-requirements li:last-child {
    margin-bottom: 0;
}

/* Security notice styling */
.security-notice {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.security-notice i {
    color: #856404;
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.notice-content h4 {
    color: #856404;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.notice-content p {
    margin: 0;
    color: #856404;
    line-height: 1.5;
}

/* Security note (alternative version for step 2) */
.security-note {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.security-note i {
    color: #856404;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.security-note p {
    margin: 0;
    color: #856404;
    line-height: 1.5;
    font-size: 14px;
}

/* Success page specific styles */
.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 64px;
    color: var(--success-text, #28a745);
}

.success-message {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.success-message p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.success-message p:last-child {
    margin-bottom: 0;
}

.instruction-box {
    background-color: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.instruction-box h4 {
    color: var(--primary-color, #438d9a);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-box ol {
    margin: 0;
    padding-left: 20px;
}

.instruction-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.instruction-box li:last-child {
    margin-bottom: 0;
}

/* Token expiry warning */
.token-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.token-warning i {
    color: #856404;
    margin-right: 8px;
}

.token-warning p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* =============================================================================
   SHARED FORM STYLES
   ============================================================================= */

/* Form styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary, #1b272e);
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color, #438d9a);
    box-shadow: 0 0 0 3px rgba(67, 141, 154, 0.1);
}

/* Button styling */
.btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color, #438d9a);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.btn:hover {
    background-color: var(--primary-dark, #367b87);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 141, 154, 0.3);
}

/* Primary button styling */
.btn.btn-primary {
    background-color: var(--primary-color, #438d9a);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    width: auto; /* Override the 100% width for inline buttons */
}

.btn.btn-primary:hover {
    background-color: var(--primary-dark, #367b87);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Form links styling */
.form-links {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.form-links p {
    margin: 10px 0;
}

.form-links a {
    color: var(--primary-color, #438d9a);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: var(--primary-dark, #367b87);
    text-decoration: underline;
}

/* Error message styling */
.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 14px;
}

/* Help text styling */
.help-text {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Form section header styling */
.form-section h2 {
    text-align: center;
    color: var(--primary-color, #438d9a);
    margin-bottom: 30px;
}

/* =============================================================================
   RESPONSIVE STYLES
   ============================================================================= */

@media (max-width: 768px) {
    .step-indicator {
        margin-bottom: 20px;
        padding: 15px 0;
    }
    
    .step {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-line {
        width: 60px;
    }
    
    .account-found {
        padding: 15px;
    }
    
    .account-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .account-info i {
        margin-top: 0;
    }
    
    .reset-header {
        padding: 15px;
    }
    
    .reset-header i {
        font-size: 36px;
    }
    
    .reset-header p {
        font-size: 14px;
    }
    
    .password-requirements {
        padding: 15px;
    }
    
    .security-notice {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .security-notice i {
        margin-top: 0;
    }
    
    .security-note {
        flex-direction: column;
        gap: 8px;
    }
    
    .security-note i {
        margin-top: 0;
    }
    
    .success-icon i {
        font-size: 48px;
    }
    
    .success-message {
        padding: 20px;
    }
    
    .instruction-box {
        padding: 15px;
    }
}

/* =============================================================================
   FONTAWESOME ICON FALLBACKS
   ============================================================================= */

/* Fix for FontAwesome icons if they don't exist */
.fas.fa-envelope-circle-check::before {
    content: "\f2b6"; /* fallback to envelope icon */
}

.fas.fa-list-check::before {
    content: "\f0ca"; /* fallback to list icon */
}