/* Enhanced Password Reset Page Styles with Modern Design Elements */

:root {
    --password-reset-primary: rgb(247, 115, 41);
    --password-reset-primary-rgb: 247, 115, 41;
    --password-reset-dark: #bd5b23;
    --password-reset-darker: #471b1b;
    --password-reset-light: #D9D9D9C9;
    --password-reset-white: #ffffff;
    --password-reset-text-dark: #2c3e50;
    --password-reset-text-light: #6c757d;
    --password-reset-success: #28a745;
    --password-reset-danger: #dc3545;
    --password-reset-warning: #ffc107;
    --password-reset-info: #17a2b8;
}

.password-reset-page-wrapper {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

.password-reset-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.password-reset-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(247, 115, 41, 0.9) 0%,
        rgba(189, 91, 35, 0.8) 50%,
        rgba(71, 39, 27, 0.9) 100%
    );
    z-index: 1;
}

.password-reset-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/page-banners/side-bg.jpeg') center/cover no-repeat;
    z-index: 0;
}

/* Animated Background Particles with Enhanced Effects */
.password-reset-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.password-reset-particles .particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: password-reset-float 6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.password-reset-particles .particle:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    background: rgba(247, 115, 41, 0.2);
}

.password-reset-particles .particle:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    background: rgba(255, 255, 255, 0.15);
}

.password-reset-particles .particle:nth-child(3) {
    width: 25px;
    height: 25px;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
    background: rgba(189, 91, 35, 0.2);
}

.password-reset-particles .particle:nth-child(4) {
    width: 12px;
    height: 12px;
    top: 80%;
    left: 30%;
    animation-delay: 1s;
    background: rgba(255, 255, 255, 0.1);
}

.password-reset-particles .particle:nth-child(5) {
    width: 18px;
    height: 18px;
    top: 30%;
    left: 10%;
    animation-delay: 3s;
    background: rgba(247, 115, 41, 0.15);
}

.password-reset-particles .particle:nth-child(6) {
    width: 22px;
    height: 22px;
    top: 70%;
    left: 70%;
    animation-delay: 5s;
    background: rgba(255, 255, 255, 0.12);
}

@keyframes password-reset-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Password Reset Container with Glass Morphism Effect */
.password-reset-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.password-reset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 100px rgba(247, 115, 41, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Left Panel - Enhanced Visual Design */
.password-reset-visual-panel {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(247, 115, 41, 0.1) 0%,
        rgba(189, 91, 35, 0.1) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
    overflow: hidden;
}

.password-reset-visual-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/page-banners/side-bg.jpeg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.password-reset-visual-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 115, 41, 0.1) 0%, transparent 70%);
    animation: password-reset-rotate 20s linear infinite;
    z-index: 1;
}

@keyframes password-reset-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.password-reset-visual-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.password-reset-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.password-reset-logo:hover {
    transform: scale(1.05);
}

.password-reset-welcome-title {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--password-reset-text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.password-reset-welcome-subtitle {
    font-size: 1.1rem;
    color: var(--password-reset-text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Visual Icons Display */
.password-reset-visual-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.password-reset-visual-icon {
    width: 60px;
    height: 60px;
    background: rgba(247, 115, 41, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(247, 115, 41, 0.2);
}

.password-reset-visual-icon:hover {
    background: rgba(247, 115, 41, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(247, 115, 41, 0.2);
}

.password-reset-visual-icon i {
    font-size: 1.5rem;
    color: var(--password-reset-primary);
}

/* Security Features */
.security-features {
    text-align: left;
    max-width: 300px;
}

.security-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--password-reset-text-light);
}

.security-feature i {
    color: var(--password-reset-success);
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* Right Panel - Form Design */
.password-reset-form-panel {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--password-reset-white);
}

.password-reset-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.password-reset-form-title {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--password-reset-text-dark);
    margin-bottom: 0.5rem;
}

.password-reset-form-subtitle {
    color: var(--password-reset-text-light);
    font-size: 1rem;
    line-height: 1.5;
}

/* Enhanced Form Styles */
.password-reset-form {
    width: 100%;
}

.enhanced-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.enhanced-form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--password-reset-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.enhanced-form-label i {
    margin-right: 0.5rem;
    color: var(--password-reset-primary);
    width: 16px;
    text-align: center;
}

.enhanced-form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: var(--password-reset-text-dark);
}

.enhanced-form-control:focus {
    outline: none;
    border-color: var(--password-reset-primary);
    background: var(--password-reset-white);
    box-shadow: 0 0 0 3px rgba(var(--password-reset-primary-rgb), 0.1);
}

.enhanced-form-control.is-valid {
    border-color: var(--password-reset-success);
    background: rgba(40, 167, 69, 0.05);
}

.enhanced-form-control.is-invalid {
    border-color: var(--password-reset-danger);
    background: rgba(220, 53, 69, 0.05);
}

/* Enhanced Button Styles */
.enhanced-reset-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--password-reset-primary) 0%, var(--password-reset-dark) 100%);
    border: none;
    border-radius: 12px;
    color: var(--password-reset-white);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(var(--password-reset-primary-rgb), 0.3);
}

.enhanced-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--password-reset-primary-rgb), 0.4);
    color: var(--password-reset-white);
}

.enhanced-reset-btn:active {
    transform: translateY(0);
}

.enhanced-reset-btn.btn-loading {
    background: var(--password-reset-text-light);
    pointer-events: none;
}

.enhanced-reset-btn.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: var(--password-reset-white);
    border-radius: 50%;
    animation: password-reset-spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes password-reset-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Alert Styles */
.password-reset-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    border: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

.password-reset-alert i {
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.alert-success i {
    color: var(--password-reset-success);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.alert-danger i {
    color: var(--password-reset-danger);
}

/* Form Links */
.password-reset-links {
    text-align: center;
    margin-top: 1rem;
}

.password-reset-link {
    color: var(--password-reset-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.password-reset-link:hover {
    color: var(--password-reset-dark);
    text-decoration: none;
}

.register-link {
    margin-top: 1rem;
    color: var(--password-reset-text-light);
    font-size: 0.95rem;
}

/* Error Messages */
.text-danger {
    color: var(--password-reset-danger) !important;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.invalid-feedback {
    color: var(--password-reset-danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

/* Password Strength Meter (for reset form) */
.password-strength-meter {
    margin-top: 0.5rem;
    height: 4px;
    background: #e1e8ed;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak .password-strength-fill {
    background: var(--password-reset-danger);
    width: 25%;
}

.strength-medium .password-strength-fill {
    background: var(--password-reset-warning);
    width: 50%;
}

.strength-good .password-strength-fill {
    background: var(--password-reset-info);
    width: 75%;
}

.strength-strong .password-strength-fill {
    background: var(--password-reset-success);
    width: 100%;
}

/* Password Requirements */
.password-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--password-reset-primary);
}

.password-requirements h6 {
    margin-bottom: 0.75rem;
    color: var(--password-reset-text-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--password-reset-text-light);
    transition: all 0.3s ease;
}

.requirement i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.requirement.valid {
    color: var(--password-reset-success);
}

.requirement.valid i {
    color: var(--password-reset-success);
}

/* Responsive Design */
@media (max-width: 992px) {
    .password-reset-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .password-reset-visual-panel {
        padding: 2rem;
        order: 2;
    }
    
    .password-reset-form-panel {
        padding: 2rem;
        order: 1;
    }
    
    .password-reset-welcome-title {
        font-size: 2rem;
    }
    
    .password-reset-visual-icons {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .password-reset-container {
        padding: 1rem;
    }
    
    .password-reset-visual-panel,
    .password-reset-form-panel {
        padding: 1.5rem;
    }
    
    .password-reset-welcome-title {
        font-size: 1.75rem;
    }
    
    .password-reset-form-title {
        font-size: 1.5rem;
    }
    
    .password-reset-visual-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .password-reset-visual-icon {
        width: 50px;
        height: 50px;
    }
    
    .password-reset-visual-icon i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .password-reset-welcome-title {
        font-size: 1.5rem;
    }
    
    .password-reset-form-title {
        font-size: 1.25rem;
    }
    
    .enhanced-form-control {
        padding: 0.75rem;
    }
    
    .enhanced-reset-btn {
        padding: 0.875rem 1.5rem;
    }
}

/* Loading States */
.form-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Visible for Better Accessibility */
.enhanced-form-control:focus-visible,
.enhanced-reset-btn:focus-visible,
.password-reset-link:focus-visible {
    outline: 2px solid var(--password-reset-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .password-reset-grid {
        border: 2px solid var(--password-reset-text-dark);
    }
    
    .enhanced-form-control {
        border-width: 2px;
    }
    
    .enhanced-reset-btn {
        border: 2px solid var(--password-reset-text-dark);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .password-reset-particles .particle {
        animation: none;
    }
    
    .password-reset-visual-panel::after {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .password-reset-page-wrapper {
        background: white !important;
    }
    
    .password-reset-particles,
    .password-reset-visual-panel::before,
    .password-reset-visual-panel::after {
        display: none !important;
    }
    
    .password-reset-grid {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}