/* Chemin du fichier: /public/css/forgot-password-style.css */

:root {
    --forgot-password-bg: var(--support_user_bg);
    --forgot-password-text: var(--support_user_text);
    --forgot-password-accent: var(--support_user_accent);
    --forgot-password-border: var(--support_user_border);
    --forgot-password-danger: var(--support_user_danger);
    --forgot-password-success: var(--support_user_success);
    --forgot-password-warning: var(--support_user_warning);
    --forgot-password-info: var(--support_user_info);
    --forgot-password-card-bg: var(--support_user_card_bg);
    --forgot-password-card-hover: var(--support_user_card_hover);
    --forgot-password-input-bg: var(--support_user_input_bg);
    --forgot-password-input-border: var(--support_user_input_border);
    --forgot-password-shadow: var(--support_user_shadow);
    --forgot-password-transition: var(--support_user_transition);
}

/* Container principal */
.forgot-password-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, var(--forgot-password-bg) 100%);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.forgot-password-container.forgot-password-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.forgot-password-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(156, 98, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(156, 98, 198, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Header avec logo et navigation */
.forgot-password-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.forgot-password-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--forgot-password-shadow);
    transition: var(--forgot-password-transition);
    border: 1px solid rgba(156, 98, 198, 0.1);
    margin-bottom: 1rem;
}

.forgot-password-logo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 98, 198, 0.15);
    border-color: rgba(156, 98, 198, 0.2);
}

.forgot-password-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--forgot-password-accent), #8550b0);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.forgot-password-logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--forgot-password-accent), #8550b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.forgot-password-breadcrumb {
    margin-top: 1rem;
}

.forgot-password-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--forgot-password-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--forgot-password-transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.forgot-password-breadcrumb-link:hover {
    color: var(--forgot-password-accent);
    opacity: 1;
    background-color: rgba(156, 98, 198, 0.05);
}

/* Section principale */
.forgot-password-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Carte du formulaire */
.forgot-password-card {
    background: var(--forgot-password-card-bg);

    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--forgot-password-shadow);
    border: 1px solid var(--forgot-password-border);
    width: 100%;
    max-width: 480px;
    position: relative;
}

.forgot-password-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--forgot-password-accent), #8550b0);
    border-radius: 20px 20px 0 0;
}

/* En-tête de la carte */
.forgot-password-card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.forgot-password-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(156, 98, 198, 0.1), rgba(156, 98, 198, 0.05));
    border-radius: 20px;
    color: var(--forgot-password-accent);
    margin: 0 auto 1.5rem;
}

.forgot-password-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--forgot-password-text);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.forgot-password-subtitle {
    font-size: 1.1rem;
    color: var(--forgot-password-text);
    opacity: 0.8;
    margin: 0;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Message d'erreur global */
.forgot-password-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 71, 87, 0.05);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-left: 4px solid var(--forgot-password-danger);
    border-radius: 12px;
    margin-bottom: 2rem;
    animation: forgot-password-error-slide-in 0.4s ease-out;
}

@keyframes forgot-password-error-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-password-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--forgot-password-danger);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.forgot-password-error-content {
    flex: 1;
}

.forgot-password-error-content strong {
    display: block;
    font-weight: 600;
    color: var(--forgot-password-danger);
    margin-bottom: 0.25rem;
}

.forgot-password-error-content p {
    margin: 0;
    color: var(--forgot-password-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Formulaire */
.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.forgot-password-form-group {
    display: flex;  
    flex-direction: column;
    gap: 0.75rem;
}

/* Labels */
.forgot-password-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--forgot-password-text);
    font-size: 0.95rem;
}

.forgot-password-label-text {
    display: block;
}

.forgot-password-label-required {
    color: var(--forgot-password-danger);
    font-size: 1rem;
}

/* Wrapper d'input */
.forgot-password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.forgot-password-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--forgot-password-text);
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
    transition: var(--forgot-password-transition);
}

.forgot-password-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border: 2px solid var(--forgot-password-input-border);
    border-radius: 12px;
    background-color: var(--forgot-password-input-bg);
    font-size: 1rem;
    color: var(--forgot-password-text);
    transition: var(--forgot-password-transition);
    outline: none;
    position: relative;
    z-index: 1;
}

.forgot-password-input::placeholder {
    color: var(--forgot-password-text);
    opacity: 0.5;
}

.forgot-password-input:focus {
    border-color: var(--forgot-password-accent);
    background-color: var(--forgot-password-card-bg);
    box-shadow: 0 0 0 3px rgba(156, 98, 198, 0.1);
}

.forgot-password-input:focus ~ .forgot-password-input-icon {
    color: var(--forgot-password-accent);
    opacity: 1;
}

.forgot-password-input-error {
    border-color: var(--forgot-password-danger);
    background-color: rgba(255, 71, 87, 0.02);
}

.forgot-password-input-error:focus {
    border-color: var(--forgot-password-danger);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

/* États de validation */
.forgot-password-input-status {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0;
    transition: var(--forgot-password-transition);
}

.forgot-password-status-success {
    opacity: 1;
    color: var(--forgot-password-success);
}

.forgot-password-status-error {
    opacity: 1;
    color: var(--forgot-password-danger);
}

/* Hint sous l'input */
.forgot-password-input-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--forgot-password-text);
    opacity: 0.7;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    background-color: rgba(156, 98, 198, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(156, 98, 198, 0.2);
}

.forgot-password-input-hint svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Actions du formulaire */
.forgot-password-form-actions {
    margin-top: 1rem;
}

.forgot-password-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--forgot-password-transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.forgot-password-btn-primary {
    background: linear-gradient(135deg, var(--forgot-password-accent), #8550b0);
    color: white;
    box-shadow: 0 4px 12px rgba(156, 98, 198, 0.3);
}

.forgot-password-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 98, 198, 0.4);
}

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

.forgot-password-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(156, 98, 198, 0.15) !important;
}

.forgot-password-btn-loading {
    pointer-events: none;
}

.forgot-password-btn-loading .forgot-password-spinner {
    animation: forgot-password-spin 1s linear infinite;
}

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

.forgot-password-btn-text {
    font-weight: 600;
}

.forgot-password-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--forgot-password-transition);
}

.forgot-password-btn:hover .forgot-password-btn-icon {
    transform: translateX(2px);
}

/* Section d'information */
.forgot-password-info {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2rem;
}

.forgot-password-info-card {
    background: var(--forgot-password-card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--forgot-password-shadow);
    border: 1px solid var(--forgot-password-border);
}

.forgot-password-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--forgot-password-text);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* Étapes */
.forgot-password-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.forgot-password-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease-out;
}

.forgot-password-step.forgot-password-step-animate {
    opacity: 1;
    transform: translateX(0);
}

.forgot-password-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--forgot-password-accent), #8550b0);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.forgot-password-step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--forgot-password-text);
    margin: 0 0 0.25rem 0;
}

.forgot-password-step-content p {
    font-size: 0.875rem;
    color: var(--forgot-password-text);
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

/* Section d'aide */
.forgot-password-help {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 3px solid var(--forgot-password-info);
}

.forgot-password-help-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forgot-password-text);
    margin: 0 0 1rem 0;
}

.forgot-password-help-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.forgot-password-help-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--forgot-password-text);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.forgot-password-help-list li::before {
    content: "•";
    color: var(--forgot-password-info);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.forgot-password-help-contact {
    font-size: 0.9rem;
    color: var(--forgot-password-text);
    opacity: 0.8;
    margin: 0;
}

.forgot-password-help-link {
    color: var(--forgot-password-info);
    text-decoration: none;
    font-weight: 600;
    transition: var(--forgot-password-transition);
}

.forgot-password-help-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Footer */
.forgot-password-footer {
    margin-top: 3rem;
    text-align: center;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.forgot-password-back {
    margin-bottom: 2rem;
}

.forgot-password-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--forgot-password-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: var(--forgot-password-transition);
    border: 1px solid var(--forgot-password-border);
    background-color: var(--forgot-password-card-bg);
}

.forgot-password-back-link:hover {
    color: var(--forgot-password-accent);
    background-color: var(--forgot-password-card-hover);
    transform: translateY(-1px);
    border-color: rgba(156, 98, 198, 0.2);
}

.forgot-password-social-proof {
    padding: 1.5rem;
    background-color: rgba(156, 98, 198, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(156, 98, 198, 0.1);
}

.forgot-password-social-text {
    font-size: 0.95rem;
    color: var(--forgot-password-text);
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

.forgot-password-social-text strong {
    color: var(--forgot-password-accent);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .forgot-password-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .forgot-password-info {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        position: static;
    }
}

@media (max-width: 768px) {
    .forgot-password-container {
        padding: 1rem 0.5rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }
    
    .forgot-password-header {
        margin-bottom: 1.5rem;
    }
    
    .forgot-password-logo-link {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .forgot-password-logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .forgot-password-logo-text {
        font-size: 2rem;
    }
    
    .forgot-password-card {
        padding: 2rem 1.5rem;
    }
    
    .forgot-password-title {
        font-size: 1.75rem;
    }
    
    .forgot-password-subtitle {
        font-size: 1rem;
    }
    
    .forgot-password-illustration {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }
    
    .forgot-password-info-card {
        padding: 1.5rem;
    }
    
    .forgot-password-help {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .forgot-password-card {
        padding: 1.5rem 1rem;
    }
    
    .forgot-password-input {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    
    .forgot-password-input-icon {
        left: 0.75rem;
    }
    
    .forgot-password-input-status {
        right: 0.75rem;
    }
    
    .forgot-password-input-hint {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .forgot-password-step {
        gap: 0.75rem;
    }
    
    .forgot-password-step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Animations de performance */
.forgot-password-container * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .forgot-password-container,
    .forgot-password-btn,
    .forgot-password-input,
    .forgot-password-step {
        transition: none;
        animation: none;
    }
    
    .forgot-password-container.forgot-password-animate-in {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible pour les utilisateurs au clavier */
.forgot-password-btn:focus-visible,
.forgot-password-input:focus-visible,
.forgot-password-breadcrumb-link:focus-visible,
.forgot-password-back-link:focus-visible,
.forgot-password-help-link:focus-visible {
    outline: 2px solid var(--forgot-password-accent);
    outline-offset: 2px;
}

/* États de validation en temps réel */
.forgot-password-input:valid:not(:placeholder-shown):not(.forgot-password-input-error) {
    border-color: var(--forgot-password-success);
}

.forgot-password-input:valid:not(:placeholder-shown):not(.forgot-password-input-error) ~ .forgot-password-input-icon {
    color: var(--forgot-password-success);
    opacity: 1;
}