/* auth.css */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-connexion,
.btn-inscription {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-connexion {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-connexion:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-inscription {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-inscription:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(124, 144, 130, 0.3);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--background-light);
    margin-top: 60px;
}

.auth-form {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    gap: 0.8rem;
}

.auth-form h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
}

.auth-form button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.auth-switch {
    text-align: center;
    margin-top: 0.8rem;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.2rem;
}

.input-icon input {
    width: 100%;
    padding: 0.8rem 2.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-icon input.error {
    border-color: var(--error-color);
}

.input-icon i:not(.toggle-password) {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    color: var(--primary-color);
}

.input-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 144, 130, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--dark-mint);
}

.auth-links p {
    margin-top: 1rem;
    color: var(--text-color);
}

/* Message d'erreur */
.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.2rem;
    min-height: 1.2em;
    display: none;
}

.error-message.visible {
    display: block;
    padding: 0.5rem;
    background-color: rgba(255, 0, 0, 0.05);
    border-left: 3px solid var(--error-color);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.error-message.success {
    color: var(--primary-color);
    background-color: rgba(124, 144, 130, 0.1);
    border-left: 3px solid var(--primary-color);
}

/* Styles pour la vérification du téléphone */
.verification-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

#recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.verification-code {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-color);
    margin: 1rem 0;
    text-align: center;
}

.help-text i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.skip-link {
    display: block;
    text-align: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
}

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

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.cta-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.cta-button.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .auth-container {
        margin: 100px 1rem 40px;
        padding: 1.5rem;
    }
}

.user-email {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-weight: 500;
}

.user-profile {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.user-profile i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.user-profile:hover i {
    color: var(--dark-mint);
}

.btn-deconnexion {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-deconnexion:hover {
    background: var(--dark-mint);
}

.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Animation pour le hover de l'icône */
.user-profile i {
    transition: transform 0.3s ease;
}

.user-profile:hover i {
    transform: scale(1.1);
}