/* Styles pour les pages d'authentification */

/* Section commune */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Conteneurs */
.auth-container {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-container.small {
    max-width: 450px;
}

.auth-container h2 {
    color: #dc143c;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
}

.auth-container p {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #dc143c;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    accent-color: #dc143c;
}

.checkbox-group label {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

.checkbox-group a {
    color: #dc143c;
    text-decoration: none;
    transition: color 0.3s;
}

.checkbox-group a:hover {
    color: #ff1744;
    text-decoration: underline;
}

/* Remember me / Forgot password */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.remember-me input[type="checkbox"] {
    cursor: pointer;
    accent-color: #dc143c;
}

.forgot-password {
    color: #dc143c;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #ff1744;
    text-decoration: underline;
}

/* Boutons */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Liens */
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

.auth-link a {
    color: #dc143c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-link a:hover {
    color: #ff1744;
}

.back-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

.back-link a {
    color: #dc143c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #ff1744;
}

/* Messages */
.error-message {
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.3);
    color: #ff1744;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.info-box {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196f3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* Force du mot de passe */
.password-strength {
    margin-top: 5px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

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

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

.password-strength.strong {
    color: #4caf50;
}

/* Exigences mot de passe */
.password-requirements {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196f3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.password-requirements ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.password-requirements li {
    margin: 5px 0;
}

/* Token invalide */
.invalid-token {
    text-align: center;
}

.invalid-token h3 {
    color: #ff1744;
    margin-bottom: 20px;
}

.invalid-token p {
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
    }

    .auth-container h2 {
        font-size: 1.6em;
    }

    .remember-forgot {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}