/* Écrans de connexion à la charte de la nouvelle version (retour de Dina du 4 novembre) : en fond, la photo de
   l'atelier fournie par Dina, en photomontage 1920 × 1080 (sujet à gauche, dégradé bleu nuit à droite), en WebP de
   109 Ko ; une carte blanche centrée dans la fenêtre, les boutons bleus et la police Poppins. Les jetons de bara.css
   prennent les valeurs de la charte : les formulaires suivent. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins/Poppins-Regular.09acac7457bd.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins/Poppins-SemiBold.2c63e05091c7.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins/Poppins-Bold.92934d92f57e.ttf") format("truetype"); }

.nv-connexion {
  --tint: #5364FF;
  --tint-presse: #3546C5;
  --tint-leger: rgba(83, 100, 255, 0.10);
  --tint-presse-leger: rgba(83, 100, 255, 0.18);
  --label: #222222;
  --label-secondaire: #626879;
  --label-tertiaire: #626879;
  --fond-element: #FFFFFF;
  --fond-groupe: #F8F9FC;
  --fond-remplissage: #F8F9FC;
  --separateur: #E8EAF0;
  --police-corps: "Poppins", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --police-titres: "Poppins", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 27rem);
  grid-template-rows: 1fr auto 1fr;
  justify-content: center;
  align-items: center;
  gap: 1rem clamp(1rem, 6vw, 7rem);
  padding: 2rem clamp(1rem, 6vw, 7rem);
  max-width: none;
  width: 100%;
  background: transparent;
  font-family: var(--police-corps);
  color: var(--label);
}
/* Le fond couvre toute la fenêtre, quelle que soit sa largeur. */
html:has(.nv-connexion), body:has(.nv-connexion) { background: #070B22 url("../img/connexion-atelier.8fdc1b6b9d40.webp") left center / cover no-repeat fixed; }
body:has(.nv-connexion) > * { max-width: none; }
/* La carte, au centre de la fenêtre, dans les deux sens (retour de Dina du 4 novembre). */
.nv-connexion .feuille {
  grid-row: 2;
  max-width: none;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 80px rgba(3, 6, 30, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.nv-connexion .feuille__logo { width: 150px; margin-bottom: 1.25rem; padding: 0; box-shadow: none; background: transparent; }
.nv-connexion .feuille h1 { font-size: 1.625rem; font-weight: 700; color: var(--label); letter-spacing: -0.01em; }
.nv-connexion .feuille .sous-titre { font-size: 0.875rem; margin-bottom: 1.5rem; }
.nv-connexion .groupe { margin-bottom: 1.25rem; }
.nv-connexion .groupe__titre { font-size: 0.75rem; font-weight: 600; color: var(--label-secondaire); text-transform: none; }
/* Champs séparés, à la façon des fenêtres de l'ERP. */
.nv-connexion .liste { background: transparent; box-shadow: none; border-radius: 0; display: grid; gap: 0.625rem; }
.nv-connexion .liste > li + li::before { display: none; }
.nv-connexion .champ input, .nv-connexion .liste .champ input {
  min-height: 46px; padding: 0 0.875rem; border: 1px solid var(--separateur); border-radius: 12px; background: #FFFFFF;
  font: 400 0.9375rem var(--police-corps); color: var(--label); box-shadow: none;
}
.nv-connexion .champ input:focus { outline: 3px solid rgba(83, 100, 255, 0.35); outline-offset: 0; border-color: var(--tint); }
.nv-connexion .bouton { border-radius: 12px; font-family: var(--police-corps); font-weight: 600; text-shadow: none; }
.nv-connexion .bouton--grand { min-height: 48px; font-size: 0.9375rem; }
.nv-connexion .bouton--teinte, .nv-connexion button[type="submit"]:not(.bouton--teinte-leger) { background: var(--tint); color: #FFFFFF; }
.nv-connexion .bouton--teinte:hover, .nv-connexion button[type="submit"]:hover { background: var(--tint-presse); }
.nv-connexion .ligne { border: 1px solid var(--separateur); border-radius: 12px; background: #FFFFFF; }
.nv-connexion .ligne:hover { border-color: var(--tint); }
.nv-connexion .ligne .icone { color: var(--tint); }
.nv-connexion .messages { margin-bottom: 1rem; }
/* Le crédit, en bas, en blanc sur le fond. */
.nv-connexion .credit { grid-row: 3; align-self: end; justify-self: center; color: rgba(255, 255, 255, 0.7); text-align: center; margin: 0; }
.nv-connexion .credit a { color: #FFFFFF; }
@media (max-width: 900px) {
  html:has(.nv-connexion), body:has(.nv-connexion) { background-position: 30% center; }
}
