/* Couleurs personnalisées */
:root {
    --primary-color: #4f46e5;     /* Indigo moderne */
    --secondary-color: #6366f1;   /* Indigo clair */
    --accent-color: #818cf8;      /* Indigo très clair */
    --text-primary: #111827;      /* Gris très foncé */
    --text-secondary: #4b5563;    /* Gris moyen */
    --text-muted: #9ca3af;        /* Gris clair */
    --background: #f3f4f6;        /* Fond légèrement plus sombre */
    --card-background: rgba(255, 255, 255, 0.95);
}

/* Styles globaux */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    background: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Effet de fond moderne */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(79, 70, 229, 0.2) 0%, transparent 50%);
    z-index: 0;
}

/* Navbar personnalisée */
.navbar-custom {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand img {
    height: 30px;
    transition: transform 0.3s ease;
    filter: brightness(0); /* Logo noir */
}

.navbar-custom .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 0 0.25rem;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(79, 70, 229, 0.08);
    transform: translateY(-1px);
}

/* Wrapper d'authentification */
.auth-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-container .col-md-6 {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-container .col-md-8 {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* Logo d'authentification */
.auth-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    filter: brightness(0); /* Logo noir */
}

.auth-logo:hover {
    transform: scale(1.05);
}

/* Cartes d'authentification */
.auth-card {
    background: var(--card-background);
    border-radius: 16px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.5rem 0;
}

.auth-header h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Formulaires d'authentification */
.auth-card .card-body {
    padding: 0 1.5rem 1.5rem;
}

.auth-card h6 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1rem;
}

.auth-card h6::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 3px;
}

.auth-card .form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.auth-card .form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: white;
    height: auto;
}

.auth-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-card .input-group-text {
    background-color: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-right: none;
    color: var(--text-muted);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 8px 0 0 8px;
}

.auth-card .input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

/* Bouton personnalisé */
.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.625rem 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    color: white;
}

/* Footer de la carte */
.auth-card .card-footer {
    background-color: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
}

.auth-card .card-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.auth-card .card-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-card .card-footer a:hover {
    color: var(--secondary-color);
}

/* Alertes personnalisées */
.alert {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    padding: 0.75rem 0;
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        margin: 0.5rem;
    }
    
    .auth-header {
        padding: 1.25rem 1.25rem 0;
    }
    
    .auth-card .card-body {
        padding: 0 1.25rem 1.25rem;
    }
    
    .auth-card .card-footer {
        padding: 1rem 1.25rem;
    }
    
    .auth-logo {
        max-width: 100px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card {
    animation: fadeIn 0.5s ease-out;
}
