/* =========================================================
   babidi — écrans de connexion et de mot de passe
   ========================================================= */

body.page-connexion {
  overflow: auto;
  background:
    radial-gradient(circle at 20% 10%, rgba(62,190,230,.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(19,43,61,.15), transparent 50%),
    var(--babidi-page-bg);
}

.cx {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cx-carte {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--babidi-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(19,43,61,.14);
  padding: 34px 32px 26px;
}

.cx-marque { text-align: center; margin-bottom: 24px; }
.cx-marque svg { width: 170px; height: auto; }

.cx-titre {
  font-size: 17px;
  font-weight: 700;
  color: #181c32;
  margin: 0 0 6px;
  text-align: center;
}

.cx-aide {
  font-size: 12.5px;
  color: var(--babidi-muted);
  text-align: center;
  margin: 0 0 18px;
  line-height: 1.5;
}

.cx-champ { display: block; margin-bottom: 14px; }
.cx-champ span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #7e8299;
  margin-bottom: 5px;
}
.cx-champ input {
  width: 100%;
  border: 1px solid var(--babidi-border);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--babidi-text);
  background: #fff;
}
.cx-champ input:focus {
  outline: none;
  border-color: var(--babidi-accent);
  box-shadow: 0 0 0 3px rgba(62,190,230,.18);
}

.cx-bouton {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 7px;
  background: var(--babidi-dark);
  color: #fff;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.cx-bouton:hover { background: var(--babidi-accent); }

.cx-erreur, .cx-succes, .cx-alerte {
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 16px;
}
.cx-erreur  { background: #fff5f8; color: #d9214e; border: 1px solid #ffd9e3; }
.cx-succes  { background: #f0fbf5; color: #2f9e63; border: 1px solid #cdf0dd; }
.cx-alerte  { background: #fffaf0; color: #9a6700; border: 1px solid #ffe9bd; }

.cx-pied {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--babidi-muted);
  text-align: center;
}
.cx-pied a { color: var(--babidi-accent); }
.cx-pied a:hover { text-decoration: underline; }
