/* === ACCOUNT FORGOT PASSWORD PROFESSIONAL CSS - PlateformeEmploi === */

/* === MAIN LAYOUT === */
.auth-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--plum-light) 100%);
    opacity: 0.03;
    z-index: 1;
}

/* === BRANDING SIDE - EXECUTIVE THEME === */
.executive-branding {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.executive-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
    max-width: 480px;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.brand-logo i {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.brand-logo h2 {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
    color: var(--text-on-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.branding-content h3 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-on-primary);
}

.branding-content h3 .text-warning {
    color: var(--accent-gold) !important;
}

.branding-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* === FEATURE LIST === */
.features-list {
    text-align: left;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-right: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-content h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
    color: var(--text-on-primary);
}

.feature-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* === FORM SIDE === */
.auth-form-container {
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 550px;
    padding: 3rem 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* === FORM SECTIONS === */
.form-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--sage-light);
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sage-light);
}

.section-title i {
    margin-right: 0.75rem;
    font-size: 1.4rem;
}

/* === FORM GROUPS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-text);
    font-weight: var(--font-weight-bold);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--sage-light);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-border);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.is-valid {
    border-color: var(--success-border);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.invalid-feedback {
    display: block;
    color: var(--danger-text);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    margin-top: 0.5rem;
}

.form-text {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-text i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* === RECOVERY PROCESS === */
.recovery-process {
    margin-top: 1.5rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateX(5px);
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: var(--text-on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* === FORM ACTIONS === */
.form-actions {
    margin: 2.5rem 0;
}

.recovery-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-on-primary);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.recovery-btn:hover:not(:disabled) {
    background: var(--plum-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.recovery-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.recovery-btn i {
    margin-right: 0.75rem;
}

/* === SUPPORT SECTION === */
.auth-support-section {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sage-light);
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.support-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.support-link:hover {
    color: var(--plum-dark);
    text-decoration: underline;
}

.support-link i {
    margin-right: 0.5rem;
}

/* === FOOTER SECTION === */
.auth-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sage-light);
}

.registration-section {
    text-align: center;
}

.section-divider {
    position: relative;
    margin-bottom: 2rem;
}

.section-divider span {
    background: var(--bg-primary);
    color: var(--text-muted);
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    position: relative;
    z-index: 1;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--sage-light);
    z-index: 0;
}

.registration-content {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--sage-light);
}

.registration-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.registration-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.registration-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.benefit-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* === ALERT STYLES === */
.alert {
    border-radius: var(--border-radius-lg);
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger-text);
    border-left: 4px solid var(--danger-border);
}

.alert-danger.d-none:not(:empty) {
    display: flex !important;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 991.98px) {
    .auth-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .branding-content {
        padding: 2rem;
    }
    
    .branding-content h3 {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .auth-section {
        background: var(--bg-primary);
    }
    
    .auth-form-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .support-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .registration-content {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-form-wrapper {
        padding: 1rem;
    }
    
    .auth-header {
        margin-bottom: 2rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .form-section {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .form-control {
        padding: 0.75rem 1rem;
    }
    
    .recovery-btn {
        font-size: 0.9rem;
        padding: 0.875rem 1.25rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-item i {
        font-size: 2rem;
        margin-right: 1rem;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .feature-item,
    .process-step,
    .recovery-btn {
        transition: none;
    }
    
    .feature-item:hover,
    .process-step:hover,
    .recovery-btn:hover {
        transform: none;
    }
    
    .executive-branding::before {
        animation: none;
    }
}

/* === FOCUS STYLES === */
.form-control:focus,
.recovery-btn:focus,
.support-link:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* === LOADING STATES === */
.recovery-btn.loading {
    pointer-events: none;
    position: relative;
}

.recovery-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === ANIMATION DELAYS === */
[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

/* When elements come into view */
[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}