/* =====================================================================
   EASY SCHOOL — Page de connexion (reproduction fidèle de la maquette)
   Feuille autonome (préfixe .es-lg-) pour éviter tout conflit.
   ===================================================================== */
:root {
    --lg-blue: #2f7bf6;
    --lg-blue-d: #1d4ed8;
    --lg-navy: #16233f;
    --lg-ink: #1e2a44;
    --lg-muted: #7688a6;
    --lg-line: #e6ecf6;
    --lg-tint1: #eef5ff;
    --lg-tint2: #d9e8ff;
    --lg-page1: #eaf2ff;
    --lg-page2: #dbe8fd;
}

.es-lg-body {
    margin: 0; min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--lg-ink);
    display: grid; place-items: center; padding: 26px;
    position: relative; overflow-x: hidden;
    background:
        radial-gradient(1000px 700px at 108% -8%, #cfe1ff 0%, transparent 55%),
        radial-gradient(900px 700px at -8% 108%, #d6e6ff 0%, transparent 55%),
        linear-gradient(135deg, var(--lg-page1), var(--lg-page2));
}
/* Vagues décoratives de la page */
.es-lg-body::before, .es-lg-body::after {
    content: ''; position: fixed; z-index: 0; border-radius: 46% 54% 60% 40%;
    background: linear-gradient(135deg, rgba(94,150,255,.22), rgba(59,130,246,.10));
    filter: blur(4px);
}
.es-lg-body::before { width: 520px; height: 520px; top: -190px; right: -150px; }
.es-lg-body::after  { width: 460px; height: 460px; bottom: -180px; left: -150px; border-radius: 54% 46% 40% 60%; }

/* Conteneur principal */
.es-lg-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 1120px;
    background: #fff; border-radius: 30px; overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(26, 51, 105, .45), 0 0 0 1px rgba(255,255,255,.6);
    display: grid; grid-template-columns: 1.06fr .94fr; min-height: 640px;
}

/* ----------------------------------------------- Panneau gauche (branding) */
.es-lg-brand {
    position: relative; padding: 52px 54px;
    background: linear-gradient(160deg, var(--lg-tint1) 0%, var(--lg-tint2) 100%);
    display: flex; flex-direction: column; overflow: hidden;
}
.es-lg-brand-dots {
    position: absolute; top: 46px; right: 54px;
    display: grid; grid-template-columns: repeat(3, 7px); gap: 12px;
}
.es-lg-brand-dots i { width: 7px; height: 7px; border-radius: 50%; background: #2f7bf6; opacity: .5; }
/* Filigranes */
.es-lg-wm { position: absolute; color: #2f7bf6; opacity: .07; pointer-events: none; }
.es-lg-wm.w1 { font-size: 130px; top: 92px; right: 78px; }
.es-lg-wm.w2 { font-size: 92px;  top: 300px; right: 150px; opacity: .06; }
.es-lg-wm.w3 { font-size: 100px; top: 340px; left: 40px; opacity: .06; }

.es-lg-welcome { position: relative; z-index: 2; }
.es-lg-hi { font-size: 1.7rem; font-weight: 500; color: var(--lg-ink); margin: 6px 0 2px; }
.es-lg-title { font-size: 3.15rem; font-weight: 800; letter-spacing: -1px; line-height: 1.05; margin: 0; color: var(--lg-navy); }
.es-lg-title span { color: var(--lg-blue); }
.es-lg-sub { font-size: 1.32rem; font-weight: 700; color: var(--lg-ink); margin: 16px 0 0; }
.es-lg-rule { width: 90px; height: 4px; border-radius: 4px; background: var(--lg-blue); margin: 16px 0 20px; }
.es-lg-desc { font-size: .98rem; line-height: 1.7; color: #55668a; max-width: 30em; }

/* Illustration (livres + toque) — évocation de la maquette */
.es-lg-illus { position: relative; z-index: 2; margin-top: auto; align-self: center; width: 100%; max-width: 420px; }
.es-lg-illus svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 30px rgba(30,60,120,.22)); }

/* ----------------------------------------------- Panneau droit (formulaire) */
.es-lg-form-wrap {
    padding: 44px 52px; display: flex; flex-direction: column; justify-content: center;
    background: #fff;
}
.es-lg-logo { text-align: center; margin-bottom: 10px; }
.es-lg-logo img { height: 108px; width: auto; object-fit: contain; }

.es-lg-h2 { text-align: center; font-size: 1.42rem; font-weight: 800; color: var(--lg-navy); margin: 6px 0 4px; }
.es-lg-p { text-align: center; font-size: .9rem; color: var(--lg-muted); margin: 0 0 26px; }

.es-lg-field { position: relative; margin-bottom: 16px; }
.es-lg-field > .ic {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: #98a6c0; font-size: 1.05rem;
}
.es-lg-field input {
    width: 100%; height: 54px; border: 1.5px solid var(--lg-line); border-radius: 13px;
    padding: 0 46px; font-size: .92rem; color: var(--lg-ink); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.es-lg-field input::placeholder { color: #9aa7bf; }
.es-lg-field input:focus { outline: none; border-color: var(--lg-blue); box-shadow: 0 0 0 4px rgba(47,123,246,.13); }
.es-lg-eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #98a6c0; width: 38px; height: 38px;
    border-radius: 9px; cursor: pointer; display: grid; place-items: center;
}
.es-lg-eye:hover { color: var(--lg-blue); background: #f2f6ff; }

.es-lg-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; }
.es-lg-check { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: #55668a; cursor: pointer; user-select: none; }
.es-lg-check input { width: 17px; height: 17px; accent-color: var(--lg-blue); cursor: pointer; }
.es-lg-forgot { font-size: .86rem; color: var(--lg-blue); font-weight: 600; }
.es-lg-forgot:hover { text-decoration: underline; }

.es-lg-submit {
    width: 100%; height: 54px; border: none; border-radius: 13px; cursor: pointer;
    background: linear-gradient(100deg, #2f7bf6, #1d4ed8);
    color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .2px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 14px 26px -10px rgba(37,99,235,.6); transition: transform .12s, box-shadow .12s;
}
.es-lg-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 30px -10px rgba(37,99,235,.7); }
.es-lg-submit:active { transform: translateY(0); }
.es-lg-submit i { font-size: 1.05rem; }

.es-lg-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: #9aa7bf; font-size: .82rem; }
.es-lg-divider::before, .es-lg-divider::after { content: ''; flex: 1; height: 1px; background: var(--lg-line); }

.es-lg-social { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.es-lg-social a {
    height: 50px; border: 1.5px solid var(--lg-line); border-radius: 13px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: .9rem; font-weight: 600; color: #3a4a66; background: #fff; transition: .15s;
}
.es-lg-social a:hover { border-color: #c4d3ee; background: #f7faff; transform: translateY(-1px); }

.es-lg-foot { text-align: center; font-size: .78rem; color: #9aa7bf; margin: 26px 0 0; }
.es-lg-demo { text-align: center; font-size: .78rem; color: var(--lg-muted); margin: 10px 0 0; }
.es-lg-demo strong { color: var(--lg-blue); }

/* Alertes flash */
.es-lg-form-wrap .alert { border-radius: 12px; font-size: .84rem; }

/* ----------------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .es-lg-card { grid-template-columns: 1fr; max-width: 460px; }
    .es-lg-brand { display: none; }
    .es-lg-form-wrap { padding: 40px 34px; }
}
@media (max-width: 480px) {
    .es-lg-body { padding: 12px; }
    .es-lg-form-wrap { padding: 32px 22px; }
    .es-lg-logo img { height: 88px; }
}
