/* Reset Password Styles - Direction Artistique du Site */

/* Variables globales */
:root {
    --main-gradient: linear-gradient(45deg, #faadc7, #e0c3f0, #55c7f6);
    --secondary-gradient: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    --background-color: #f5f7fa;
    --card-background: rgba(255, 255, 255, 0.95);
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #e0e7ef;
    --shadow-light: 0 8px 32px rgba(37, 99, 235, 0.08);
    --shadow-medium: 0 20px 40px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(139, 92, 246, 0.08);
}

/* Reset et base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Questrial', sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container principal */
.reset-password-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Carte principale */
.reset-password-card {
    background: var(--card-background);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    padding: 3rem 2.5rem;
    width: 100%;
    text-align: center;
    border: 1.5px solid #e0e7ff;
    position: relative;
    overflow: hidden;
}

/* Titre principal */
.reset-password-title {
    background: var(--main-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

/* Sous-titre */
.reset-password-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Formulaire */
.reset-password-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Bouton principal */
.reset-password-btn {
    background: linear-gradient(45deg, #faadc7, #e0c3f0, #55c7f6);
    color: white;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(224, 195, 240, 0.4);
}

.reset-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(224, 195, 240, 0.5);
    filter: brightness(1.1);
}

.reset-password-btn:focus {
    outline: none;
    box-shadow: 0 6px 16px rgba(224, 195, 240, 0.5);
}

/* Messages d'alerte */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.alert-info {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Liens */
.reset-password-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.reset-password-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Page de confirmation */
.check-email-container {
    text-align: center;
    padding: 2rem;
}

.check-email-icon {
    font-size: 3rem;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.check-email-title {
    background: var(--main-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.check-email-message {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Bouton retour */
.back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-top: 1rem;
}

.back-to-login:hover {
    color: var(--text-primary);
}

.back-to-login i {
    background: var(--main-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Responsive */
@media (max-width: 480px) {
    .reset-password-container {
        padding: 1rem;
    }
    
    .reset-password-card {
        padding: 2rem 1.5rem;
    }
    
    .reset-password-title {
        font-size: 1.5rem;
    }
    
    .check-email-icon {
        font-size: 2.5rem;
    }
}

/* Animation d'entrée */
.reset-password-card {
    animation: slideInUp 0.6s ease-out;
}

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

/* Style pour les champs de mot de passe répétés */
.password-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-group {
    position: relative;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input[type="password"] {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--text-primary);
}

/* Validation des mots de passe */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.password-strength.weak {
    color: #dc2626;
}

.password-strength.medium {
    color: #f59e0b;
}

.password-strength.strong {
    color: #16a34a;
} 