/* ============================================
   INSCRIPTION.CSS - Page d'inscription
   ============================================ */

.inscription-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    min-height: calc(100vh - 300px);
}

.inscription-form {
    width: 100%;
    max-width: 550px;
    background-color: var(--color-white);
    padding: 1.75rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Header du formulaire */
.form-header {
    text-align: center;
    margin-bottom: 1rem;
}

.form-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #e0a800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.form-icon i {
    font-size: 1.3rem;
    color: white;
}

.inscription-form h1 {
    font-family: var(--font-cursive);
    color: var(--color-black);
    margin-bottom: 0.25rem;
    font-size: 1.6rem;
}

.form-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-black);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--color-primary);
}

.form-group input {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.8rem;
}

/* Wrapper mot de passe avec œil */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

/*
.toggle-password:hover {
    color: #666;
}
*/

.toggle-password:hover {
    color: var(--color-primary);
}

.toggle-password i {
    font-size: 1rem;
}

/* Messages d'erreur */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.6rem;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    color: #dc3545;
}

/* Checkbox CGU */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.cgu-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

.cgu-link:hover {
    color: #e0a800;
}

/* Groupe de boutons */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.button-group .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer du formulaire */
.form-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-footer p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.form-footer a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .inscription-container {
        padding: 1rem;
    }
    
    .inscription-form {
        padding: 1.5rem;
    }
    
    .inscription-form h1 {
        font-size: 1.4rem;
    }
    
    .form-icon {
        width: 45px;
        height: 45px;
    }
    
    .form-icon i {
        font-size: 1.15rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
}