.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--color-primary-very-light) 0%, var(--color-primary-light) 100%);
    font-family: var(--font-primary);
}

.auth-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(155, 103, 75, 0.12);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--color-primary);
}

/* En-tête */
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.decoration-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary-hard));
}

.decoration-line:last-child {
    background: linear-gradient(90deg, var(--color-primary-hard), transparent);
}

.decoration-symbol {
    color: var(--color-primary-hard);
    font-size: 14px;
}

.auth-header h1 {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary-hard);
    margin: 0 0 8px 0;
}

.auth-subtitle {
    color: var(--color-secondary-light);
    font-size: 0.95rem;
    font-weight: 300;
    margin: 0;
}

/* Formulaire */
.form-group {
    margin-bottom: 22px;
}

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

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-primary-hard);
    opacity: 0.6;
}

.form-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--color-secondary);
    background: var(--color-primary-very-light);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--color-secondary-light);
    opacity: 0.5;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary-hard);
    background: white;
    box-shadow: 0 0 0 3px rgba(155, 103, 75, 0.1);
}

/* Form row pour deux colonnes */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: var(--color-secondary-light);
    font-size: 0.8rem;
}

/* Checkbox custom */
.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--color-primary-hard);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--color-primary-hard);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Radio buttons custom */
.radio-group {
    display: flex;
    gap: 25px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--color-secondary);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary-hard);
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.forgot-link {
    color: var(--color-primary-hard);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Bouton submit */
.btn-submit {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--color-primary-hard) 0%, #7a523c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 103, 75, 0.35);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-primary);
}

.auth-divider span {
    background: white;
    padding: 0 18px;
    color: var(--color-secondary-light);
    font-size: 0.85rem;
    position: relative;
}

/* OAuth buttons */
.oauth-buttons {
    gap: 12px;
    margin-bottom: 30px;
}

.btn-oauth {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.oauth-icon {
    width: 20px;
    height: 20px;
}

.btn-google {
    background: white;
    color: var(--color-secondary);
    border: 1px solid var(--color-primary);
}

.btn-google:hover {
    background: var(--color-primary-very-light);
    border-color: var(--color-primary-hard);
}

.btn-facebook {
    background: #1877F2;
    color: white;
    border: 1px solid #1877F2;
}

.btn-facebook:hover {
    background: #166fe5;
}

/* Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-primary-light);
}

.auth-footer p {
    color: var(--color-secondary-light);
    font-size: 0.9rem;
    margin: 0;
}

.auth-footer a {
    color: var(--color-primary-hard);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 25px;
    border-radius: 12px;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Bouton retour */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    background: var(--color-primary-very-light);
    color: var(--color-primary-hard);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-hard);
    transform: translateX(-3px);
}

.btn-back svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-back:hover svg {
    transform: translateX(-3px);
}

/* Formulaire de renvoi d'email de vérification */
.resend-verification-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 18px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.resend-text {
    font-size: 0.85rem;
    color: #9a3412;
    margin: 0 0 12px 0;
    text-align: center;
    font-weight: 500;
}

.resend-form-inline {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.resend-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    background: white;
    color: var(--color-secondary);
    transition: all 0.3s ease;
}

.resend-input:focus {
    outline: none;
    border-color: var(--color-primary-hard);
    box-shadow: 0 0 0 2px rgba(155, 103, 75, 0.15);
}

.resend-input::placeholder {
    color: #9ca3af;
}

.btn-resend {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    justify-content: center;
}

.btn-resend:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.btn-resend svg {
    width: 16px;
    height: 16px;
}

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

    .auth-header h1 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .oauth-buttons {
        flex-direction: column;
    }

    .btn-oauth {
        width: 100%;
    }

    .btn-resend {
        width: 100%;
    }
}