/* CSS de fallback pour l'authentification admin sur cPanel */
/* Ce fichier est utilisé quand les assets Vite ne sont pas disponibles */

/* Reset et styles de base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container principal */
.login-page {
    display: flex;
    min-height: 600px;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Section gauche */
.login-left {
    width: 35%;
    background: linear-gradient(135deg, #0066ff 0%, #004db3 100%);
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Section droite */
.login-right {
    width: 65%;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
}

/* En-tête de connexion */
.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.login-header p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Liste des fonctionnalités */
.features-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

/* Formulaire de connexion */
.login-form {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.login-form h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.form-input:focus {
    outline: none;
    border-color: #0066ff;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

/* Boutons */
.btn-primary {
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

/* Cases à cocher */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

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

/* Pied de formulaire */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    color: #004db3;
    text-decoration: underline;
}

/* Alertes */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Sélecteur de langue */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.875rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
        min-height: auto;
        margin: 0;
        width: 100%;
        border-radius: 0;
    }
    
    .login-left, .login-right {
        width: 100%;
        padding: 2rem;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-form {
        max-width: none;
        padding: 1.5rem;
    }
}