/* ============================================================================
   gestparc-auth-v3.css — pages hors session (index.php, reinit_mdp.php)

   Feuille AUTONOME. Ces pages ne chargent plus ni main.css ni stylemg.css :
   le header historique Escape Velocity y disparait entierement, il n'y a donc
   plus rien a surcharger. Ne pas l'inclure dans les pages sous session, qui
   restent servies par gestparc-ui-v3.css.

   Jetons identiques a gestparc-ui-v3.css et aux maquettes V3 : toute
   divergence de teinte entre la connexion et l'application serait visible au
   premier chargement.
   ========================================================================== */

:root{
  --navy:#203a5f;
  --navy-2:#17293f;
  --ink:#22324a;
  --bg:#f4f6fb;
  --card:#ffffff;
  --line:rgba(15,23,42,.10);
  --line-2:rgba(15,23,42,.06);
  --muted:#64748b;
  --accent:#036080;
  --accent-soft:rgba(3,96,128,.10);
  --live:#0f7a3d;
  --live-soft:rgba(15,122,61,.10);
  --warn:#b45309;
  --warn-soft:rgba(180,83,9,.10);
  --danger:#d11a1a;
  --danger-soft:rgba(209,26,26,.08);
  --radius:14px;
  --shadow:0 8px 18px rgba(15,23,42,.08);
  --shadow-lg:0 18px 40px rgba(15,23,42,.14);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%}

body.gp-auth{
  background:var(--bg);
  color:var(--ink);
  font-family:"Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
  font-size:15px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
  min-height:100%;
}

/* Deux halos tres pales. Pas d'image de fond : la page doit s'afficher
   entierement au premier octet, y compris sur une liaison lente. */
body.gp-auth::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(32,58,95,.10), transparent 62%),
    radial-gradient(700px 380px at 92% 108%, rgba(3,96,128,.09), transparent 60%);
}

.gp-auth__page{
  position:relative;z-index:1;flex:1 0 auto;
  display:flex;align-items:center;justify-content:center;
  padding:40px 16px 28px;
}

/* ---------------------------------------------------------------- Carte --- */
.gp-auth__card{
  width:100%;max-width:1000px;
  display:grid;grid-template-columns:1.02fr .98fr;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}

/* ------------------------------------------------------- Colonne editeur --- */
.gp-brand{
  background:linear-gradient(180deg,var(--navy) 0%,var(--navy-2) 100%);
  color:#fff;padding:38px 38px 30px;
  display:flex;flex-direction:column;
  border-right:1px solid rgba(255,255,255,.10);
}
.gp-brand__mark{display:flex;align-items:center;gap:12px}
.gp-brand__mark svg{flex:0 0 auto}
.gp-brand__name{font-size:26px;font-weight:900;letter-spacing:.2px;line-height:1}
.gp-brand__ver{
  font-size:11px;font-weight:900;vertical-align:super;margin-left:5px;
  color:rgba(255,255,255,.62);letter-spacing:.04em;
}
.gp-brand__baseline{font-size:13.5px;font-weight:700;color:rgba(255,255,255,.74);margin-top:5px}

.gp-brand__pitch{margin:30px 0 0;font-size:19px;font-weight:800;line-height:1.35;max-width:23ch}

.gp-brand__list{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:11px}
.gp-brand__list li{
  display:flex;gap:11px;align-items:flex-start;
  font-size:13.5px;font-weight:600;color:rgba(255,255,255,.82);line-height:1.4;
}
.gp-brand__list svg{flex:0 0 auto;margin-top:2px;color:rgba(255,255,255,.55)}

.gp-brand__editor{margin-top:auto;padding-top:26px;border-top:1px solid rgba(255,255,255,.16)}
.gp-brand__editor-label{font-size:12px;font-weight:700;color:rgba(255,255,255,.60)}
.gp-brand__editor-name{
  display:block;margin-top:4px;font-size:17px;font-weight:900;
  color:#fff;text-decoration:none;letter-spacing:.2px;
}
.gp-brand__editor-name:hover{text-decoration:underline}
.gp-brand__editor-line{margin-top:6px;font-size:12.5px;font-weight:600;color:rgba(255,255,255,.66)}
.gp-brand__editor-line a{color:rgba(255,255,255,.88)}

/* ----------------------------------------------------- Colonne formulaire --- */
.gp-form{padding:38px 40px 32px;display:flex;flex-direction:column}
.gp-form__head h2{margin:0;font-size:22px;font-weight:900;letter-spacing:-.2px}
.gp-form__head p{margin:6px 0 0;color:var(--muted);font-size:13.5px;font-weight:600}

.gp-form form{margin-top:24px;display:grid;gap:18px}
.gp-field label{display:block;font-size:13.5px;font-weight:800;color:var(--ink);margin-bottom:7px}
.gp-control{position:relative;display:flex;align-items:center}
.gp-control svg.gp-lead{position:absolute;left:14px;color:var(--muted);pointer-events:none}

.gp-input{
  width:100%;min-height:52px;
  padding:12px 14px 12px 44px;
  border:1.5px solid #cbd5e1;border-radius:10px;
  background:#fff;color:var(--ink);
  font-family:inherit;font-size:17px;font-weight:600;letter-spacing:.01em;
  transition:border-color .12s ease, box-shadow .12s ease;
}
/* Une regle par variante : une liste separee par des virgules est invalidee
   en entier des qu'un membre est inconnu du navigateur (cf. JOURNAL V3 §5). */
.gp-input::placeholder{color:#9aa7b8;font-weight:500}
.gp-input::-webkit-input-placeholder{color:#9aa7b8;font-weight:500}
.gp-input::-moz-placeholder{color:#9aa7b8;font-weight:500;opacity:1}
.gp-input:-ms-input-placeholder{color:#9aa7b8;font-weight:500}

.gp-input:hover{border-color:#a9b7c6}
.gp-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}

.gp-input--mdp{padding-right:52px;letter-spacing:.06em}
.gp-reveal{
  position:absolute;right:8px;width:38px;height:38px;
  border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.gp-reveal:hover{background:#f1f5f9;color:var(--ink)}

.gp-labelrow{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.gp-link{color:var(--accent);font-size:13px;font-weight:800;text-decoration:none}
.gp-link:hover{text-decoration:underline}

.gp-hint{margin-top:7px;font-size:12.5px;font-weight:700;color:var(--muted)}

.gp-caps{
  display:none;margin-top:8px;padding:8px 11px;border-radius:9px;
  background:var(--warn-soft);border:1px solid rgba(180,83,9,.25);
  color:var(--warn);font-size:12.5px;font-weight:800;
}
.gp-caps.is-on{display:flex;gap:8px;align-items:center}

.gp-submit{
  min-height:52px;width:100%;
  border:0;border-radius:10px;cursor:pointer;
  background:var(--navy);color:#fff;
  font-family:inherit;font-size:16px;font-weight:900;letter-spacing:.2px;
  box-shadow:0 8px 18px rgba(32,58,95,.28);
  transition:background .12s ease, box-shadow .12s ease, transform .12s ease;
}
.gp-submit:hover{background:#1a3152;box-shadow:0 12px 24px rgba(32,58,95,.34)}
.gp-submit:active{transform:translateY(1px)}

/* ------------------------------------------------------------- Messages --- */
.gp-msg{
  display:flex;gap:11px;align-items:flex-start;
  margin-top:20px;padding:12px 14px;border-radius:10px;
  font-size:13.5px;font-weight:700;line-height:1.4;
}
.gp-msg svg{flex:0 0 auto;margin-top:1px}
.gp-msg--err{background:var(--danger-soft);border:1px solid rgba(209,26,26,.28);color:var(--danger)}
.gp-msg--ok{background:var(--live-soft);border:1px solid rgba(15,122,61,.26);color:var(--live)}

/* ---------------------------------------------------- Pied de formulaire --- */
.gp-form__foot{
  margin-top:auto;padding-top:24px;border-top:1px solid var(--line-2);
  display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;
}
.gp-form__foot .gp-support{font-size:12.5px;font-weight:700;color:var(--muted)}
.gp-form__foot .gp-support a{color:var(--accent);text-decoration:none}
.gp-form__foot .gp-support a:hover{text-decoration:underline}
.gp-secure{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:var(--live)}

/* ------------------------------------------------------- Pied de page RGPD --- */
.gp-auth__foot{position:relative;z-index:1;flex:0 0 auto;padding:0 16px 26px}
.gp-auth__foot-in{
  max-width:1000px;margin:0 auto;
  display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
  font-size:12.5px;color:var(--muted);font-weight:600;
}
.gp-auth__foot-in a{color:var(--muted);text-decoration:none}
.gp-auth__foot-in a:hover{color:var(--accent);text-decoration:underline}
.gp-auth__links{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:0}

/* ----------------------------------------------------------------- Divers --- */
:focus-visible{outline:3px solid #ffbf47;outline-offset:2px;border-radius:8px}
.gp-sr{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

@media screen and (max-width:900px){
  .gp-auth__card{grid-template-columns:1fr}
  .gp-brand{padding:26px 26px 24px}
  .gp-brand__pitch,
  .gp-brand__list{display:none}
  .gp-brand__editor{margin-top:20px;padding-top:18px}
  .gp-form{padding:28px 24px 26px}
  .gp-auth__page{padding:22px 14px 18px}
}
@media screen and (max-width:420px){
  .gp-form__foot{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important}
}
