/*-----Dashboard---*/
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f7f6; display: flex; }
.container { display: flex; width: 100%; min-height: 100vh; }

/* Sidebar */
.sidebar { width: 250px; background-color: #2c3e50; color: white; padding: 20px; }
.sidebar h2 { margin-bottom: 30px; text-align: center; color: #3498db; }
.sidebar ul { list-style: none; }
.sidebar ul li { padding: 15px 0; border-bottom: 1px solid #34495e; }
.sidebar ul li a { color: white; text-decoration: none; display: flex; align-items: center; }
.sidebar ul li a i { margin-right: 10px; }
.sidebar ul li a.active { color: #3498db; }

/* Main Content */
.main-content { flex: 1; padding: 30px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.card { background: white; padding: 20px; border-radius: 10px; display: flex; align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.card i { font-size: 40px; margin-right: 20px; }
.card-blue i { color: #3498db; }
.card-red i { color: #e74c3c; }
.card-green i { color: #2ecc71; }

/* Table */
table { width: 100%; background: white; border-collapse: collapse; border-radius: 10px; overflow: hidden; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: #f8f9fa; }
.badge { background: #eee; padding: 5px 10px; border-radius: 20px; font-size: 12px; }
/*-------fin-------*/

/* -----LOG IN----- */

:root {
    --navy-dark: #1a2a44; /* Tiré de votre charte Scholatude */
    --navy: #243b55;
    --green: #2ecc71;
    --light-bg: #f8fafc;
    --text-main: #334155;
}

.login-body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    overflow: hidden;
}

.split-screen {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* PANNEAU GAUCHE (VISUEL) */
.left-panel {
    flex: 1.2;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 60px;
    position: relative;
}

/* Effet de grille/vague subtil comme sur ton image */
.left-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.panel-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.panel-logo {
    height: 60px;
    margin-bottom: 30px;
}

.panel-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: white;
    margin-bottom: 15px;
}

.panel-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.panel-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;
}

/* PANNEAU DROIT (FORMULAIRE) */
.right-panel {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 28px;
    color: var(--navy-dark);
    margin-bottom: 10px;
}

.form-header p {
    color: #64748b;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 4px rgba(36, 59, 85, 0.1);
}

.form-utils {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.forgot-pw {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    background: var(--navy-dark);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #111d2f;
    transform: translateY(-2px);
}

.form-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
}

.form-footer a {
    color: var(--navy-dark);
    font-weight: 700;
    text-decoration: none;
}

.back-link {
    display: block;
    margin-top: 25px;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.mobile-logo { display: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .left-panel { display: none; }
    .mobile-logo {
        display: block;
        margin-bottom: 30px;
        text-align: center;
    }
    .mobile-logo img { height: 45px; }
}
/*----------Fin----------*/
