/* Forgot Password Page - Specific Styles */

body {
    background-color: var(--background-color) !important;
    color: var(--text-color);
}

/* Header - Match Landing Page */
.header {
    background-color: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(247, 136, 136, 0.25);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #fff;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.back-btn:hover,
.back-btn:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
    color: #fff;
}

.back-btn i {
    font-size: 1rem;
    line-height: 1;
}

.back-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.35);
}

/* Validation Styling */
.form-control.validation-error {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(24, 119, 242, 0.25) !important;
}

.form-control.validation-error:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(24, 119, 242, 0.25) !important;
}

.form-control.validation-success {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(66, 200, 81, 0.25) !important;
}

.form-control.validation-success:focus {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(66, 200, 81, 0.25) !important;
}

/* Tooltip Styling */
.tooltip-inner {
    background-color: var(--primary-color) !important;
    color: white !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem !important;
    max-width: 300px !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--primary-color) !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--primary-color) !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--primary-color) !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--primary-color) !important;
}

/* Main Content */
.main-content {
    background-color: transparent;
    padding-top: 0;
    padding-bottom: 0px;
    min-height: auto;
}

.reset-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.reset-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.reset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.reset-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.reset-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-group {
    position: relative;
}

.input-group-text {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-left: none;
    color: var(--text-muted);
    border-radius: 0 15px 15px 0;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group .form-control {
    border-right: none;
    border-radius: 15px 0 0 15px;
}

.input-group .form-control:focus + .input-group-text {
    border-color: var(--primary-color);
}

/* .btn-primary styling moved to main.css */

.info-text {
    background: rgba(24, 119, 242, 0.1);
    border: 1px solid rgba(24, 119, 242, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-text i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Password meter styling */
#pswmeter {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

#pswmeter-message {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Fix body overflow to prevent dragging */
    body {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        touch-action: pan-y !important; /* Allow vertical scrolling only */
    }
    
    html {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero {
        padding: 100px 15px 40px 15px !important; /* Top padding for fixed header, bottom padding for footer spacing */
        min-height: auto !important;
        height: auto !important;
        position: relative !important;
        overflow: visible !important;
        margin-bottom: 2rem !important; /* Space before footer */
    }
    
    .hero-content {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .reset-container {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .reset-title {
        font-size: 2rem;
    }
    
    .reset-card {
        padding: 30px 20px;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        transform: none !important; /* Prevent dragging */
    }
    
    .back-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    /* Footer responsive adjustments */
    .footer-section {
        padding: 2rem 0 !important;
    }

    .footer-section .col-lg-2,
    .footer-section .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 430px) {
    /* Fix body overflow to prevent dragging */
    body {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        touch-action: pan-y !important; /* Allow vertical scrolling only */
    }
    
    html {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero {
        padding: 90px 0 40px 0 !important; /* Top padding for fixed header, bottom padding for footer spacing */
        min-height: auto !important;
        height: auto !important;
        position: relative !important;
        overflow: visible !important;
        margin-bottom: 2rem !important; /* Space before footer */
    }
    
    .hero-content {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .reset-container {
        padding-left: 12px;
        padding-right: 12px;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .reset-card {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        transform: none !important; /* Prevent dragging */
    }

    .back-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

