body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    position: relative;
}

/* Left side - Illustration/Marketing */
.auth-illustration {
    flex: 1;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.auth-illustration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-illustration::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.illustration-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 380px;
}

.illustration-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: float 6s ease-in-out infinite;
}

.illustration-icon img {
    width: 110px;
    height: auto;
    object-fit: contain;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.illustration-content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.375rem;
}

.illustration-content p {
    font-size: 0.825rem;
    color: #6b7280;
    line-height: 1.4;
}

.illustration-title {
    font-size: 2rem;
    font-weight: 700;
    color: green;
    margin-bottom: 0.25rem;
}

/* Right side - Form */
.auth-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #ffffff;
    overflow-y: auto;
}

.auth-form-box {
    width: 100%;
    max-width: 350px;
}

.auth-form-header {
    margin-bottom: 1rem;
}

.auth-form-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.auth-form-header .logo img {
    width: 28px;
    height: 21px;
    object-fit: contain;
}

.auth-form-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.auth-form-header p {
    color: #6b7280;
    font-size: 0.8rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.75rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem; /* Padding plus généreux */
    background: #f0fdf4; /* Fond vert très clair */
    border: 2px solid #10b981; /* Bordure verte */
    border-radius: 1rem; /* Plus arrondi */
    color: #047857; /* Texte vert foncé */
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
    background: #ffffff; /* Fond blanc au focus */
    border-color: #047857; /* Bordure vert très foncé au focus */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); /* Ombre de focus verte */
    transform: translateY(-1px); /* Légère élévation */
}

.form-input::placeholder {
    color: #6b7280; /* Gris pour placeholder */
}

.form-select {
    cursor: pointer;
    appearance: none; /* Supprime le style par défaut du navigateur */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23047857' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E"); /* Flèche personnalisée verte */
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    padding-right: 2.5rem; /* Espace pour la flèche */
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1); /* Ombre subtile verte */
}

.form-select:hover {
    background: #ecfdf5; /* Fond vert plus prononcé au survol */
    border-color: #059669; /* Bordure vert foncé au survol */
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.15); /* Ombre plus marquée */
    transform: translateY(-1px); /* Légère élévation */
}

.form-select option {
    background: #ffffff;
    color: #047857; /* Texte vert foncé */
    padding: 0.875rem 1rem; /* Plus d'espace généreux */
    border-radius: 0.75rem; /* Options plus arrondies */
    margin: 0.125rem 0; /* Espacement entre options */
    font-weight: 500; /* Texte légèrement plus épais */
    transition: all 0.2s ease; /* Animation fluide */
    border: 1px solid transparent; /* Bordure transparente par défaut */
}

.form-select option:hover {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5); /* Dégradé vert clair au survol */
    color: #059669; /* Texte vert au survol */
    border-color: #10b981; /* Bordure verte au survol */
    transform: translateX(4px); /* Léger décalage au survol */
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1); /* Ombre subtile */
}

.form-select option:checked,
.form-select option:selected {
    background: linear-gradient(135deg, #10b981, #059669); /* Dégradé vert pour option sélectionnée */
    color: #ffffff; /* Texte blanc pour option sélectionnée */
    font-weight: 600; /* Texte plus épais pour sélection */
    border-color: #047857; /* Bordure vert foncé */
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3); /* Halo vert */
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal overlay click to close */
.modal {
    cursor: pointer;
}

.modal > .modal-content {
    cursor: default;
}

/* Success icon */
.success-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    color: #10b981;
}

.success-icon::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* Modal styles for forgot password */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.forgot-password:hover {
    color: #059669;
}

.btn-google {
    width: 100%;
    padding: 0.875rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    color: #1f2937;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-google:active {
    transform: scale(0.98);
}

.btn-register {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-register:active {
    transform: translateY(0);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-link {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.login-link a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-link a:hover {
    color: #059669;
    text-decoration: underline;
}

.register-link {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.register-link a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #059669;
    text-decoration: underline;
}

.error-message {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #dc2626;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

/* Language Selector Styling */
.language-selector-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: white;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.language-selector:hover {
    border-color: #10b981;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.1);
}

.language-selector svg {
    transition: transform 0.2s ease;
}

.language-selector.active svg {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    min-width: 120px;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 0.875rem 1.25rem; /* Plus d'espace */
    color: #047857; /* Texte vert foncé */
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease; /* Animation plus fluide */
    border-bottom: 1px solid #e5e7eb; /* Bordure plus subtile */
    border-radius: 0.75rem; /* Coins arrondis */
    margin: 0.125rem 0.5rem; /* Marge pour créer de l'espace */
    position: relative;
    overflow: hidden;
}

.language-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    transition: width 0.3s ease;
    z-index: -1;
}

.language-option:last-child {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.language-option:hover {
    background: #f0fdf4; /* Fond vert clair */
    color: #059669; /* Texte vert */
    transform: translateX(8px); /* Décalage au survol */
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.15); /* Ombre */
}

.language-option:hover::before {
    width: 4px; /* Barre colorée à gauche au survol */
}

.language-option.selected {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    transform: translateX(4px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3); /* Ombre plus marquée */
}

.language-option.selected::before {
    width: 100%; /* Fond complet pour option sélectionnée */
}

/* Responsive */
@media (max-width: 968px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-illustration {
        min-height: auto;
        padding: 1rem 1rem 0.75rem;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }
    
    .auth-illustration::before,
    .auth-illustration::after {
        display: none;
    }
    
    .illustration-content {
        max-width: 100%;
    }
    
    .illustration-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.375rem;
        box-shadow: none;
        animation: none;
    }
    
    .illustration-icon img {
        width: 60px;
        height: auto;
    }
    
    .illustration-title {
        font-size: 1.25rem;
        color: white;
        margin-bottom: 0;
    }
    
    .illustration-content h2 {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 0;
    }
    
    .illustration-content p {
        display: none;
    }
    
    /* Language selector repositioning */
    .auth-form-box {
        position: relative;
        padding-top: 3rem;
    }
    
    .language-selector-wrapper {
        top: 10px;
        right: 10px;
    }
    
    .language-selector {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
        gap: 0.375rem;
    }
    
    .language-selector svg {
        width: 10px;
        height: 10px;
    }
    
    .language-dropdown {
        min-width: 100px;
    }
    
    .language-option {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

