/* Modified: 15/02/2025 14:35 */
.auth-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.auth-section.active {
    display: block;
    opacity: 1;
}

.form-links {
    margin-top: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-links a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9rem;
}

.form-links a:hover {
    text-decoration: underline;
}
.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.auth-form button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.auth-form button:hover {
    background-color: var(--primary-dark);
}

.auth-message {
    text-align: center;
    padding: 0.5rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.auth-message.error {
    background-color: var(--error-color);
    color: white;
}

.auth-message.success {
    background-color: var(--success-color);
    color: white;
}

.auth-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
}

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

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

.auth-message a {
    color: inherit;
    text-decoration: underline;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.form-group.checkbox input[type="checkbox"] {
    margin: 0;
}

.form-group.checkbox label {
    font-size: 0.9rem;
    color: #666;
}

/* Styles pour l'indicateur de force du mot de passe */
.password-input-container {
    position: relative;
}

.password-strength-indicator {
    height: 3px;
    width: 100%;
    background: #e0e0e0;
    position: absolute;
    bottom: -3px;
    left: 0;
    transition: all 0.3s ease;
}

.password-strength-indicator.weak {
    background: #ff4444;
    width: 33.33%;
}

.password-strength-indicator.medium {
    background: #ffa700;
    width: 66.66%;
}

.password-strength-indicator.strong {
    background: #00c851;
    width: 100%;
}

/* Styles pour les champs conditionnels */
.conditional-fields {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Style pour les messages d'aide */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}

/* Style pour les champs de formulaire */
.form-control {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

/* Style pour les champs valides */
.form-control:valid {
    border-color: #28a745;
}

/* Style pour les champs invalides */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Style pour les tooltips */
.tooltip-link {
    text-decoration: underline;
    cursor: help;
}

/* Style pour les boutons des étapes d'inscription - Modified: 28/02/2025 21:33 */
#registerStep1, #registerStep2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#registerStep1 button, #registerStep2 .button-group {
    align-self: center;
    margin-top: 1rem;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

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

.auth-section.active {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Style pour les étapes du formulaire d'intervention - Modified: 06/03/2025 13:45 */
.modal-step {
    padding: 1.5rem;
    background-color: transparent;
}

.modal-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-step p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.5;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.text-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-button {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cancel-button:hover {
    background-color: #e9ecef;
    color: #495057;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.submit-button:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
