/* auth.css - Fichier complet */
@import url('./main.css');

/* =============== STRUCTURE PRINCIPALE =============== */
.form-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.form-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: fadeIn 0.6s ease-out;
}

/* =============== STYLE DES CHAMPS =============== */
.form-group {
    margin-bottom: 2rem;
}

.form-group h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFE8D9;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    flex: 1 1 calc(50% - 1.5rem);
    min-width: 250px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

input, select, textarea {
    /* width: 100%; */
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230,92,14,0.2);
    outline: none;
}
/* Style pour le champ de remarques */
#comments {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 120px;
}

#comments:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    text-align: right;
}
/* =============== CASES À COCHER =============== */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-group label {
    /* display: flex;
    align-items: center;
    position: relative; */
    padding-left: 32px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    user-select: none;
    transition: all 0.3s ease;
}

.checkbox-custom {
    /* position: absolute; */
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.2s;
}

/* .checkbox-group label:hover .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(230, 92, 14, 0.1);
} */

.checkbox-group input:checked ~ .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.checkbox-group input:checked ~ .checkbox-custom:after {
    opacity: 1;
}

.checkbox-group input:active ~ .checkbox-custom {
    transform: translateY(-50%) scale(0.9);
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
    margin-left: 4px;
}

/* =============== BOUTON =============== */
.submit-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    transition: all 0.3s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 92, 14, 0.2);
}

/* =============== FEEDBACK =============== */
.feedback {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    display: none;
    align-items: center;
    gap: 10px;
}

.feedback.show {
    display: flex;
    animation: fadeIn 0.5s;
}

.feedback-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =============== ANIMATIONS =============== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .input-group {
        flex: 1 1 100%;
    }
    
    .checkbox-group label {
        font-size: 0.95rem;
        padding-left: 28px;
    }
    
    .checkbox-custom {
        height: 20px;
        width: 20px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1.25rem;
    }
    
    .submit-btn {
        padding: 0.9rem;
        font-size: 1rem;
    }
}