/* ========================================================================
   FORGOT PASSWORD PAGE STYLES - COMPLETE WITH RESPONSIVE & DARK MODE
   All styles for forgot password page with no external dependencies
   ======================================================================== */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --dark-color: #1e1e2f;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    
    /* Light Theme Variables */
    --bg-body: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-topbar: #ffffff;
    --bg-form: #ffffff;
    --bg-input: #ffffff;
    --bg-sidebar: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-footer: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-otp-info: rgba(67, 97, 238, 0.05);
    --bg-password-toggle-hover: rgba(67, 97, 238, 0.05);
    --bg-invalid-feedback: rgba(247, 37, 133, 0.05);
    --bg-step-completed: #4bb543;
    --bg-success-circle: #4bb543;
    
    --text-primary: #333333;
    --text-heading: #1e1e2f;
    --text-form-label: #1e1e2f;
    --text-description: #6c757d;
    --text-sidebar: #ffffff;
    --text-footer: rgba(255,255,255,0.82);
    --text-footer-hover: #ffffff;
    --text-copyright: rgba(255,255,255,0.6);
    --text-step: #6c757d;
    --text-step-active: #4361ee;
    --text-otp-info: #4361ee;
    --text-strength: #6c757d;
    --text-success: #ffffff;
    
    --border-input: #e2e8f0;
    --border-step-line: #e2e8f0;
    --border-step-completed: #4bb543;
    --border-sidebar-link: rgba(255,255,255,0.1);
    --border-footer-copyright: rgba(255,255,255,0.12);
    --border-invalid-left: #f72585;
    --border-otp-resend: #4361ee;
    --border-otp-resend-disabled: #ccc;
    
    --shadow-topbar: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-form: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-sidebar: -5px 0 20px rgba(0,0,0,0.2);
    --shadow-success-circle: 0 10px 30px rgba(75, 181, 67, 0.3);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-btn-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-footer: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-step-icon: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success-circle: linear-gradient(135deg, #4bb543 0%, #3a9434 100%);
    --gradient-success-modal: linear-gradient(135deg, #4bb543 0%, #3a9434 100%);
    
    --footer-social-bg: rgba(255,255,255,0.15);
    --footer-social-hover-bg: #ffffff;
    --footer-heading-line: rgba(255,255,255,0.7);
    
    --color-valid: #4bb543;
    --color-password-toggle: #6c757d;
    --color-otp-resend-disabled: #999;
    --color-strength-weak: #f72585;
    --color-strength-medium: #f8961e;
    --color-strength-strong: #4bb543;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg-body: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
    --bg-topbar: #1e1e2f;
    --bg-form: #1e1e2f;
    --bg-input: #2a2a3e;
    --bg-sidebar: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
    --bg-footer: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
    --bg-otp-info: rgba(67, 97, 238, 0.1);
    --bg-password-toggle-hover: rgba(67, 97, 238, 0.1);
    --bg-invalid-feedback: rgba(247, 37, 133, 0.08);
    --bg-step-completed: #4bb543;
    --bg-success-circle: #4bb543;
    
    --text-primary: #e0e0e0;
    --text-heading: #e0e0e0;
    --text-form-label: #e0e0e0;
    --text-description: #a0a0b0;
    --text-sidebar: #ffffff;
    --text-footer: rgba(255,255,255,0.75);
    --text-footer-hover: #ffffff;
    --text-copyright: rgba(255,255,255,0.5);
    --text-step: #a0a0b0;
    --text-step-active: #7b93f5;
    --text-otp-info: #7b93f5;
    --text-strength: #a0a0b0;
    --text-success: #ffffff;
    
    --border-input: #3a3a4e;
    --border-step-line: #3a3a4e;
    --border-step-completed: #4bb543;
    --border-sidebar-link: rgba(255,255,255,0.08);
    --border-footer-copyright: rgba(255,255,255,0.08);
    --border-invalid-left: #f72585;
    --border-otp-resend: #7b93f5;
    --border-otp-resend-disabled: #555;
    
    --shadow-topbar: 0 2px 10px rgba(0,0,0,0.3);
    --shadow-form: 0 20px 40px rgba(0,0,0,0.4);
    --shadow-sidebar: -5px 0 20px rgba(0,0,0,0.5);
    --shadow-success-circle: 0 10px 30px rgba(75, 181, 67, 0.3);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-btn-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-footer: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
    --gradient-step-icon: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success-circle: linear-gradient(135deg, #4bb543 0%, #3a9434 100%);
    --gradient-success-modal: linear-gradient(135deg, #4bb543 0%, #3a9434 100%);
    
    --footer-social-bg: rgba(255,255,255,0.08);
    --footer-social-hover-bg: var(--primary-color);
    --footer-heading-line: rgba(255,255,255,0.5);
    
    --color-valid: #4bb543;
    --color-password-toggle: #a0a0b0;
    --color-otp-resend-disabled: #777;
    --color-strength-weak: #f72585;
    --color-strength-medium: #f8961e;
    --color-strength-strong: #4bb543;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: var(--text-primary);
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-heading);
    transition: color 0.3s ease;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-input);
    background: var(--bg-input);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    flex-shrink: 0;
    outline: none;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
}

.theme-toggle-btn:active {
    transform: rotate(15deg) scale(0.95);
}

.theme-toggle-btn i {
    position: absolute;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-heading);
}

.theme-toggle-btn .fa-sun {
    opacity: 0;
    transform: translateY(30px) rotate(-90deg);
    color: #f8961e;
}

.theme-toggle-btn .fa-moon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    color: #6366f1;
}

[data-theme="dark"] .theme-toggle-btn .fa-sun {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle-btn .fa-moon {
    opacity: 0;
    transform: translateY(-30px) rotate(90deg);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    box-shadow: 0 0 15px rgba(248, 150, 30, 0.3);
}

/* Top bar actions wrapper */
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== SIDEBAR STYLES ===== */
#sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1050;
    top: 0;
    right: 0;
    background: var(--bg-sidebar);
    overflow-x: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow-sidebar);
    padding-top: 70px;
    max-width: 100vw;
}

#sidebar a {
    padding: 15px 30px;
    text-decoration: none;
    font-size: 16px;
    display: block;
    color: var(--text-sidebar);
    transition: 0.3s;
    border-bottom: 1px solid var(--border-sidebar-link);
    font-weight: 400;
    letter-spacing: 0.5px;
}

#sidebar a:hover {
    background: rgba(255,255,255,0.2);
    padding-left: 40px;
}

#sidebar a i {
    margin-right: 10px;
    width: 20px;
}

#sidebar .closebtn {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 30px;
    color: var(--text-sidebar);
    border-bottom: none;
    padding: 0;
}

#sidebar .closebtn:hover {
    background: transparent;
    padding-left: 0;
}

/* ===== TOP BAR STYLES ===== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-topbar);
    padding: 12px 25px;
    box-shadow: var(--shadow-topbar);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.top-bar .logo {
    width: 140px;
    transition: var(--transition);
    max-width: 100%;
    height: auto;
}

.top-bar .logo:hover {
    transform: scale(1.05);
}

.hamburger {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-heading);
    transition: var(--transition);
}

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

/* ===== FORM CONTAINER STYLES ===== */
.form-container {
    max-width: 500px;
    width: 90%;
    margin: 30px auto;
    padding: 40px;
    border-radius: 24px;
    background: var(--bg-form);
    box-shadow: var(--shadow-form);
    animation: fadeInUp 0.6s ease-out;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-step);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--gradient-step-icon);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.step.completed .step-number {
    background: var(--bg-step-completed);
    border-color: var(--border-step-completed);
    color: white;
}

.step.completed .step-number i {
    font-size: 0.75rem;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-step);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: var(--text-step-active);
}

.step.completed .step-label {
    color: var(--color-valid);
}

.step-line {
    width: 50px;
    height: 2px;
    background: var(--border-step-line);
    margin: 0 8px;
    margin-bottom: 20px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: var(--border-step-completed);
}

/* ===== STEP ICON ===== */
.step-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-step-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.25);
    animation: pulseIcon 2s infinite;
}

.step-icon i {
    font-size: 1.8rem;
    color: white;
}

.step-icon.verify-icon {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    box-shadow: 0 8px 20px rgba(76, 201, 240, 0.25);
}

.step-icon.reset-icon {
    background: linear-gradient(135deg, #f8961e 0%, #f72585 100%);
    box-shadow: 0 8px 20px rgba(248, 150, 30, 0.25);
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== FORM HEADING ===== */
.form-container h2 {
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
    color: var(--text-heading);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.form-container h2 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.step-description {
    text-align: center;
    color: var(--text-description);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.step-description strong {
    color: var(--primary-color);
}

/* ===== FORM ELEMENTS ===== */
.form-label {
    font-weight: 600;
    color: var(--text-form-label);
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--border-input);
    border-radius: 12px;
    transition: var(--transition), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1rem;
    width: 100%;
    background-color: var(--bg-input);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--gray-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
    background-color: var(--bg-input);
    color: var(--text-primary);
}

/* OTP Input */
.otp-input-large {
    letter-spacing: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    padding: 14px 10px;
}

.otp-input-large::placeholder {
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 50px;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-password-toggle);
    cursor: pointer;
    padding: 8px 12px;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
    background: var(--bg-password-toggle-hover);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--primary-color);
}

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

/* Validation Styles */
.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.1);
}

.form-control.is-valid {
    border-color: var(--color-valid);
    box-shadow: 0 0 0 3px rgba(75, 181, 67, 0.1);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--danger-color);
    font-weight: 500;
    padding: 8px 12px;
    background: var(--bg-invalid-feedback);
    border-radius: 8px;
    border-left: 3px solid var(--border-invalid-left);
}

.invalid-feedback.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
    margin-top: 8px;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--border-input);
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.strength-bar.weak {
    background: var(--color-strength-weak);
    width: 33%;
}

.strength-bar.medium {
    background: var(--color-strength-medium);
    width: 66%;
}

.strength-bar.strong {
    background: var(--color-strength-strong);
    width: 100%;
}

.strength-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-strength);
    transition: color 0.3s ease;
}

.strength-text.weak {
    color: var(--color-strength-weak);
}

.strength-text.medium {
    color: var(--color-strength-medium);
}

.strength-text.strong {
    color: var(--color-strength-strong);
}

/* ===== OTP INFO BOX ===== */
.otp-info-box {
    margin-top: 12px;
    margin-bottom: 20px;
    padding: 14px 15px;
    background: var(--bg-otp-info);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
    transition: background-color 0.3s ease;
}

.otp-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-otp-info);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.otp-info-row i {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.otp-resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(67, 97, 238, 0.1);
    flex-wrap: wrap;
}

.otp-timer-display {
    font-size: 0.8rem;
    color: var(--gray-color);
    font-weight: 500;
}

.otp-timer-display.warning {
    color: var(--warning-color);
    animation: pulse 1s infinite;
}

.otp-timer-display.expired {
    color: var(--danger-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.otp-resend-link {
    background: transparent;
    border: 1.5px solid var(--border-otp-resend);
    color: var(--primary-color);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.otp-resend-link:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.otp-resend-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-otp-resend-disabled);
    color: var(--color-otp-resend-disabled);
}

.otp-resend-link.resending {
    pointer-events: none;
}

.otp-resend-link.resending i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-btn-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102,126,234,0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading .spinner-border-sm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.2rem;
    height: 1.2rem;
}

/* ===== BACK TO LOGIN LINK ===== */
.back-to-login {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-input);
    transition: border-color 0.3s ease;
}

.back-to-login a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.back-to-login a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.back-to-login a i {
    font-size: 0.85rem;
}

/* ===== SUCCESS MODAL ===== */
.success-modal-content {
    border-radius: 24px;
    border: none;
    overflow: hidden;
}

.success-modal-content .modal-body {
    padding: 40px 30px;
    background: var(--bg-form);
    transition: background-color 0.3s ease;
}

.success-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.success-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-success-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-success-circle);
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-circle i {
    font-size: 2.5rem;
    color: white;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.success-message {
    color: var(--text-description);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon-wrapper i {
    font-size: 3rem;
    color: var(--color-valid);
}

.success-login-btn {
    padding: 12px 30px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== CELEBRATION CONTAINER ===== */
#celebration-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== NOTIFICATION STYLES ===== */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: slideInRight 0.3s ease-out;
    word-break: break-word;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: linear-gradient(135deg, #4bb543, #3a9434);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #f72585, #e01e6d);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #4cc9f0, #3b9fc0);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #f8961e, #e07a1a);
    color: white;
}

.alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-footer);
    color: white;
    padding: 50px 0 20px;
    transition: background 0.3s ease;
    margin-top: auto;
}

.footer .container {
    padding-left: 15px;
    padding-right: 15px;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 2px;
    background: var(--footer-heading-line);
    border-radius: 2px;
}

.footer p {
    color: var(--text-footer);
    line-height: 1.6;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 9px;
}

.footer ul li a {
    color: var(--text-footer);
    font-size: 0.93rem;
    transition: var(--transition), color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--text-footer-hover);
    padding-left: 5px;
}

.footer ul li i {
    margin-right: 8px;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--footer-social-bg);
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition), background-color 0.3s ease;
}

.social-links a:hover {
    background: var(--footer-social-hover-bg);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info {
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-footer);
    font-size: 0.93rem;
    margin-bottom: 9px;
    transition: color 0.3s ease;
}

.contact-info li i {
    margin-top: 2px;
    color: rgba(255,255,255,0.9);
    flex-shrink: 0;
    width: 16px;
}

.contact-info li a {
    color: var(--text-footer);
    text-decoration: none;
    transition: var(--transition), color 0.3s ease;
    word-break: break-word;
}

.contact-info li a:hover {
    color: var(--text-footer-hover);
    text-decoration: underline;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: rgba(255,255,255,0.9);
    color: #333;
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form button {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 25px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--border-footer-copyright);
    color: var(--text-copyright);
    font-size: 0.88rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* ===== FADE TRANSITION FOR STEPS ===== */
.forgot-password-step {
    animation: fadeInStep 0.4s ease-out;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================
   RESPONSIVE MEDIA QUERIES
   ======================================================================== */

/* Large Tablets and Small Laptops (max-width: 992px) */
@media screen and (max-width: 992px) {
    .form-container {
        padding: 30px;
        margin: 25px auto;
    }
    
    .form-container h2 {
        font-size: 1.4rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .step-line {
        width: 40px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .theme-toggle-btn {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle-btn i {
        font-size: 1.1rem;
    }
}

/* Tablets (max-width: 768px) */
@media screen and (max-width: 768px) {
    .top-bar {
        padding: 10px 15px;
    }
    
    .top-bar .logo {
        width: 120px;
    }
    
    .top-bar-actions {
        gap: 8px;
    }
    
    .form-container {
        width: 92%;
        padding: 25px 20px;
        margin: 20px auto;
        border-radius: 20px;
    }
    
    .form-container h2 {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .step-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .step-line {
        width: 30px;
        margin: 0 5px;
        margin-bottom: 18px;
    }
    
    .step-label {
        font-size: 0.68rem;
    }
    
    .step-icon {
        width: 55px;
        height: 55px;
    }
    
    .step-icon i {
        font-size: 1.4rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .otp-input-large {
        font-size: 1.2rem;
        letter-spacing: 7px;
        padding: 12px 8px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .otp-info-box {
        padding: 10px 12px;
    }
    
    .otp-info-row {
        font-size: 0.78rem;
    }
    
    .otp-resend-link {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    
    .otp-timer-display {
        font-size: 0.75rem;
    }
    
    .back-to-login a {
        font-size: 0.85rem;
    }
    
    .success-circle {
        width: 65px;
        height: 65px;
    }
    
    .success-circle i {
        font-size: 2rem;
    }
    
    .success-title {
        font-size: 1.3rem;
    }
    
    .success-message {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 35px 0 15px;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
    
    .footer p,
    .footer ul li a,
    .contact-info li {
        font-size: 0.88rem;
    }
    
    .theme-toggle-btn {
        width: 38px;
        height: 38px;
    }
    
    .theme-toggle-btn i {
        font-size: 1rem;
    }
}

/* Mobile Phones (max-width: 576px) */
@media screen and (max-width: 576px) {
    .top-bar {
        padding: 8px 12px;
    }
    
    .top-bar .logo {
        width: 100px;
    }
    
    .top-bar-actions {
        gap: 6px;
    }
    
    .hamburger {
        font-size: 24px;
    }
    
    .form-container {
        width: 94%;
        padding: 20px 16px;
        margin: 15px auto;
        border-radius: 16px;
    }
    
    .form-container h2 {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .form-container h2 i {
        font-size: 1rem;
        margin-right: 5px;
    }
    
    .step-description {
        font-size: 0.8rem;
        margin-bottom: 18px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .step-line {
        width: 25px;
        margin: 0 3px;
        margin-bottom: 16px;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-icon i {
        font-size: 1.3rem;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .form-control {
        padding: 8px 10px;
        font-size: 0.9rem;
        border-radius: 8px;
        border-width: 1.5px;
    }
    
    .password-input-wrapper .form-control {
        padding-right: 40px;
    }
    
    .password-toggle-btn {
        right: 2px;
        padding: 6px 10px;
        font-size: 1rem;
    }
    
    .otp-input-large {
        font-size: 1.1rem;
        letter-spacing: 5px;
        padding: 10px 6px;
    }
    
    .otp-input-large::placeholder {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .btn-primary {
        padding: 11px 18px;
    }
    
    .otp-info-box {
        padding: 8px 10px;
        margin-bottom: 15px;
    }
    
    .otp-info-row {
        font-size: 0.73rem;
        margin-bottom: 10px;
    }
    
    .otp-resend-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .otp-resend-link {
        width: 100%;
        justify-content: center;
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    
    .otp-timer-display {
        font-size: 0.73rem;
    }
    
    .invalid-feedback {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .strength-text {
        font-size: 0.7rem;
    }
    
    .back-to-login {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .back-to-login a {
        font-size: 0.82rem;
    }
    
    .success-modal-content .modal-body {
        padding: 30px 20px;
    }
    
    .success-circle {
        width: 60px;
        height: 60px;
    }
    
    .success-circle i {
        font-size: 1.8rem;
    }
    
    .success-title {
        font-size: 1.2rem;
    }
    
    .success-message {
        font-size: 0.85rem;
    }
    
    .success-icon-wrapper i {
        font-size: 2.5rem;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer h5 {
        font-size: 1rem;
    }
    
    .footer p,
    .footer ul li a,
    .contact-info li {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-links a {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    
    .theme-toggle-btn {
        width: 34px;
        height: 34px;
    }
    
    .theme-toggle-btn i {
        font-size: 0.95rem;
    }
}

/* Small Mobile Phones (max-width: 380px) */
@media screen and (max-width: 380px) {
    .top-bar .logo {
        width: 90px;
    }
    
    .hamburger {
        font-size: 22px;
    }
    
    .form-container {
        width: 96%;
        padding: 16px 12px;
        margin: 10px auto;
        border-radius: 14px;
    }
    
    .form-container h2 {
        font-size: 1.1rem;
    }
    
    .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }
    
    .step-line {
        width: 20px;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
    }
    
    .step-icon i {
        font-size: 1.2rem;
    }
    
    .form-control {
        padding: 7px 9px;
        font-size: 0.85rem;
    }
    
    .otp-input-large {
        font-size: 1rem;
        letter-spacing: 4px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .btn-primary {
        padding: 10px 14px;
    }
    
    .footer {
        padding: 25px 0 15px;
    }
    
    .footer h5 {
        font-size: 0.95rem;
    }
    
    .footer p,
    .footer ul li a,
    .contact-info li {
        font-size: 0.8rem;
    }
    
    .theme-toggle-btn {
        width: 28px;
        height: 28px;
    }
    
    .theme-toggle-btn i {
        font-size: 0.8rem;
    }
}

/* Handle sidebar on very small screens */
@media screen and (max-width: 300px) {
    #sidebar {
        width: 100% !important;
    }
    
    #sidebar a {
        padding: 12px 20px;
        font-size: 14px;
    }
}