/* ============================================================
   Portail captif — Campus Vatel
   Design clair et raffiné. Aucune dépendance externe :
   polices système uniquement (le portail s'affiche hors-ligne).
   ============================================================ */

:root {
  --ink:        #14181d;   /* texte principal */
  --ink-soft:   #5b6672;   /* texte secondaire */
  --line:       #e6e9ee;   /* filets */
  --panel:      #ffffff;   /* carte */
  --bg:         #eef1f5;   /* fond */
  --brand-dark: #101216;   /* noir du logo */
  --blue:       #7fb8dd;   /* bleu ciel du bandeau VATEL */
  --blue-deep:  #2c79b3;   /* bleu interactif */
  --blue-ink:   #1f5d8c;   /* hover */
  --ms-dark:    #2b2b2b;
  --radius:     14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Layout deux colonnes ---------- */
.layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* ---------- Panneau de marque (gauche) ---------- */
.brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 56px 40px;
  color: #eef3f8;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(127,184,221,.22), transparent 55%),
    linear-gradient(160deg, #181c22 0%, var(--brand-dark) 60%, #0a0c0f 100%);
}
.brand::before { /* filet d'accent bleu */
  content: "";
  position: absolute;
  left: 56px; top: 0;
  width: 56px; height: 5px;
  background: var(--blue);
}
.brand::after { /* "V" filigrane discret */
  content: "V";
  position: absolute;
  right: -24px; bottom: -60px;
  font-family: var(--serif);
  font-size: 340px;
  line-height: 1;
  color: rgba(255,255,255,.035);
  pointer-events: none;
}
.brand__eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}
.brand__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: .01em;
}
.brand__lead {
  max-width: 30ch;
  color: #b9c4d0;
  line-height: 1.65;
  font-size: 1.02rem;
  margin: 0;
}
.brand__foot {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #7e8a97;
  margin: 0;
}

/* ---------- Panneau de connexion (droite) ---------- */
.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  background: var(--panel);
}
.panel__inner {
  width: 100%;
  max-width: 440px;
}
.logo {
  display: block;
  width: 184px;
  height: auto;
  margin: 0 auto 30px;
}

.head { text-align: center; margin-bottom: 26px; }
.head__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 8px;
}
.head__sub {
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Charte ---------- */
.charter {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbfc;
  padding: 18px 18px 6px;
  margin-bottom: 18px;
}
.charter__title {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin: 0 0 10px;
}
.charter__scroll {
  max-height: 188px;
  overflow-y: auto;
  padding-right: 10px;
  font-size: .82rem;
  line-height: 1.6;
  color: #44505c;
}
.charter__scroll p { margin: 0 0 11px; }
.charter__scroll strong { color: var(--ink); }
.charter__scroll::-webkit-scrollbar { width: 8px; }
.charter__scroll::-webkit-scrollbar-thumb {
  background: #cfd6de; border-radius: 8px;
}

/* ---------- Consentement ---------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 20px;
  cursor: pointer;
}
.consent input {
  margin-top: 2px;
  width: 17px; height: 17px;
  accent-color: var(--blue-deep);
  flex: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 11px;
  background: var(--blue-deep);
  color: #fff;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease, opacity .15s ease;
}
.btn:hover { background: var(--blue-ink); }
.btn:active { transform: translateY(1px); }
.btn--ms { background: var(--ms-dark); }
.btn--ms:hover { background: #111; }
.btn.is-disabled {
  opacity: .45;
  /* pas de pointer-events:none -> sans JS le lien reste utilisable (fallback).
     Avec JS, le clic est bloqué tant que la charte n'est pas acceptée. */
}
.ms-logo {
  width: 18px; height: 18px; flex: none;
  background:
    linear-gradient(#f25022 0 0) 0 0 / 8px 8px no-repeat,
    linear-gradient(#7fba00 0 0) 10px 0 / 8px 8px no-repeat,
    linear-gradient(#00a4ef 0 0) 0 10px / 8px 8px no-repeat,
    linear-gradient(#ffb900 0 0) 10px 10px / 8px 8px no-repeat;
}

.hint {
  text-align: center;
  color: var(--ink-soft);
  font-size: .82rem;
  margin: 16px 0 0;
}

/* ---------- Succès ---------- */
.check {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(44,121,179,.12);
  color: var(--blue-deep);
  font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Pied ---------- */
.foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .72rem;
  color: #9aa4af;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .brand {
    padding: 40px 28px 34px;
    min-height: auto;
  }
  .brand::after { font-size: 220px; bottom: -40px; right: -10px; }
  .brand__title { font-size: 1.8rem; }
  .brand__lead { font-size: .95rem; max-width: none; }
  .brand__foot { display: none; }
  .panel { padding: 36px 24px 44px; }
}
