/* Styles pour les pages d'authentification - Cohérent avec le site */

/* Utilisation des variables du site principal */
body {
    background: var(--bg-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 2rem;
}

.auth-content-section {
    display: none;
}

.content-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    /* Force le blanc pour la section de gauche */
    color: #ffffff;
}

.content-text p {
    font-size: 1.25rem;
    color: #e5e7eb;
    /* Gris très clair pour la section de gauche */
    line-height: 1.6;
}

.auth-form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: var(--bg-primary);
}

.auth-form-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}


.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 2.5rem;
    color: #000000;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1.125rem;
    color: #333333;
    font-weight: 400;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000000;
    font-size: 0.80rem;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
    font-family: inherit;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.forgot-password {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.forgot-password:hover::after {
    width: 100%;
}

.forgot-password:hover {
    color: var(--text-primary);
}

.auth-button {
    width: 100%;
    padding: 1.25rem;
    background: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: -0.01em;
}

.auth-button:hover {
    background: var(--text-primary);
    transform: translateY(-3px);
}


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

.auth-bottom a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.auth-bottom a:hover::after {
    width: 100%;
}

.auth-bottom a:hover {
    color: var(--text-primary);
}

.auth-error {
    color: #ef4444;
    font-size: 0.95rem;
    min-height: 1.2em;
    text-align: center;
    margin-top: 1rem;
}

.auth-success {
    color: #10b981;
    font-size: 0.95rem;
    min-height: 1.2em;
    text-align: center;
    margin-top: 1rem;
}

/* Social Auth */
.social-auth {
    margin-top: 2rem;
}

.social-button {
    width: 100%;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: inherit;
}

.social-button:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0 1.5rem;
    background: var(--card-bg);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.social-button svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-content-section {
        display: none;
    }

    .auth-form-section {
        width: 100%;
        padding: 2rem 1rem;
    }

    .auth-form-container {
        padding: 2rem;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 2rem;
    }
}

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

    .form-group input,
    .form-group select,
    .form-group textarea,
    .auth-button,
    .social-button {
        padding: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
}