/* Page de connexion Célestine (application/views/login.php) — 2026-11-11
   Pas d'entité en session ici : couleur PAK par défaut. Mobile d'abord (WebView). */
:root {
    --lg-accent: #1ab394;
    --lg-accent-dark: #148f76;
    --lg-accent-soft: #e6f6f2;
    --lg-ink: #26323d;
    --lg-muted: #8a96a3;
    --lg-line: #d3dae1;
    --lg-slate: #1d2733;
}
html, body.lg-body { height: 100%; }
body.lg-body {
    margin: 0;
    background: #f6f8fa;
    color: var(--lg-ink);
    font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
.lg-wrap { display: flex; min-height: 100%; }

/* ----- Panneau marque ----- */
.lg-brand {
    position: relative;
    display: none;
    flex: 1 1 50%;
    overflow: hidden;
    background: var(--lg-slate);
    color: #fff;
}
.lg-brand-inner { position: relative; z-index: 1; max-width: 460px; margin: auto; padding: 48px; }
.lg-brand h2 { margin: 36px 0 24px; font-size: 30px; font-weight: 600; line-height: 1.25; }
.lg-points { margin: 0; padding: 0; list-style: none; }
.lg-points li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #c5cfda; font-size: 15px; }
.lg-points .fa {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(26, 179, 148, .18); color: var(--lg-accent); font-size: 15px;
}
.lg-shape { position: absolute; border-radius: 50%; background: var(--lg-accent); opacity: .12; }
.lg-shape-1 { width: 420px; height: 420px; right: -140px; bottom: -160px; }
.lg-shape-2 { width: 200px; height: 200px; left: -70px; top: -60px; opacity: .08; }

.lg-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.lg-logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--lg-accent); color: #fff; font-size: 20px; font-weight: 700;
}

/* ----- Formulaire ----- */
.lg-panel { display: flex; flex: 1 1 50%; align-items: center; justify-content: center; padding: 24px 16px; }
.lg-card {
    width: 100%;
    max-width: 400px;
    padding: 28px 24px 20px;
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
}
.lg-logo-small { margin-bottom: 22px; color: var(--lg-ink); font-size: 18px; }
.lg-logo-small .lg-logo-mark { width: 34px; height: 34px; font-size: 18px; }
.lg-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--lg-ink); }
.lg-sub { margin: 0 0 22px; color: var(--lg-muted); font-size: 13px; }

.lg-field { margin-bottom: 14px; }
.lg-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #5b6875; }
.lg-input { position: relative; }
.lg-input > .fa { position: absolute; top: 50%; left: 14px; margin-top: -8px; color: var(--lg-muted); font-size: 16px; pointer-events: none; }
.lg-input .form-control {
    height: 48px;
    padding: 0 44px 0 42px;
    border: 1px solid var(--lg-line);
    border-radius: 10px;
    box-shadow: none;
    font-size: 15px;           /* ≥ 15 px : pas de zoom automatique sur mobile */
    color: var(--lg-ink);
}
.lg-input .form-control:focus { border-color: var(--lg-accent); box-shadow: 0 0 0 3px rgba(26, 179, 148, .18); }
.lg-input .form-control.parsley-error { border-color: #ed5565; background: #fffafa; }
.lg-eye {
    position: absolute; top: 2px; right: 2px;
    width: 44px; height: 44px;
    border: 0; border-radius: 8px;
    background: transparent; color: var(--lg-muted); font-size: 16px; cursor: pointer;
}
.lg-eye:hover, .lg-eye:focus { color: var(--lg-ink); outline: 0; }
.lg-err .parsley-errors-list { margin: 5px 0 0; padding: 0; list-style: none; color: #ed5565; font-size: 12px; }

.lg-row { display: flex; justify-content: flex-end; margin: 2px 0 18px; }
.lg-link { display: inline-flex; align-items: center; min-height: 32px; color: var(--lg-accent-dark); font-size: 13px; font-weight: 600; }
.lg-link:hover, .lg-link:focus { color: var(--lg-accent); }

.lg-submit {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 48px;
    border: 0; border-radius: 10px;
    background: var(--lg-accent);
    color: #fff; font-size: 15px; font-weight: 700;
}
.lg-submit:hover, .lg-submit:focus { background: var(--lg-accent-dark); color: #fff; }
.lg-submit.is-loading { color: transparent; pointer-events: none; }
.lg-submit.is-loading > * { visibility: hidden; }
.lg-submit.is-loading::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
    animation: lg-spin .7s linear infinite;
}
@keyframes lg-spin { to { transform: rotate(360deg); } }

.lg-foot { margin: 22px 0 0; text-align: center; color: var(--lg-muted); font-size: 12px; }

/* Vidéo de présentation (chargée seulement au clic) */
.lg-video-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 44px; margin: 14px 0 0; padding: 8px 12px;
    border: 1px dashed var(--lg-line); border-radius: 8px; background: transparent;
    color: var(--lg-accent-dark); font-size: 14px; font-weight: 600; cursor: pointer;
}
.lg-video-btn .fa { font-size: 20px; }
.lg-video-btn:active, .lg-video-btn:focus { background: var(--lg-accent-soft); border-color: var(--lg-accent); outline: none; }
.lg-video {
    position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(13, 19, 26, .85);
}
.lg-video[hidden] { display: none; }
.lg-video-box { position: relative; width: 100%; max-width: 960px; }
.lg-video-box video { display: block; width: 100%; max-height: 80vh; border-radius: 10px; background: #000; }
.lg-video-close {
    position: absolute; top: -52px; right: 0; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 20px; cursor: pointer;
}

/* Pages « Mot de passe oublié » / « Nouveau mot de passe » : même carte que la connexion */
.lg-row-center { justify-content: center; margin: 16px 0 0; }

/* Écran large : panneau marque à gauche, le petit logo de la carte disparaît */
@media (min-width: 900px) {
    .lg-brand { display: flex; }
    .lg-logo-small { display: none; }
    .lg-card { padding: 36px 32px 24px; }
}
/* Téléphone : la carte occupe la largeur, sans cadre */
@media (max-width: 480px) {
    .lg-panel { align-items: flex-start; padding: 32px 16px; }
    .lg-card { padding: 8px 4px; border: 0; background: transparent; box-shadow: none; }
}
