/* ---------------------------------------------------------------------------
   Pages de connexion et de creation de compte.
   Composition reprise des modeles fournis, en noir a la place du mauve.
   --------------------------------------------------------------------------- */

.auth-page {
  --auth-bg: #f6f9fc;
  --auth-line: #e6ebf1;
  --auth-card: #ffffff;
  --auth-border: #e0e4ea;
  --auth-ink: #1a1f36;
  --auth-dim: #4f566b;
  --auth-faint: #8792a2;
  --auth-brand: #14161a;
  min-height: 100vh;
  background: var(--auth-bg);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  color: var(--auth-ink);
}

/* reperes verticaux du modele */
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 500px), var(--auth-line) calc(50% - 500px), var(--auth-line) calc(50% - 499px), transparent calc(50% - 499px)),
    linear-gradient(90deg, transparent calc(50% - 180px), var(--auth-line) calc(50% - 180px), var(--auth-line) calc(50% - 179px), transparent calc(50% - 179px)),
    linear-gradient(90deg, transparent calc(50% + 180px), var(--auth-line) calc(50% + 180px), var(--auth-line) calc(50% + 181px), transparent calc(50% + 181px)),
    linear-gradient(90deg, transparent calc(50% + 500px), var(--auth-line) calc(50% + 500px), var(--auth-line) calc(50% + 501px), transparent calc(50% + 501px));
  pointer-events: none;
}

/* les deux bandes obliques */
.auth-ribbon {
  position: absolute;
  pointer-events: none;
  transform: skewY(-12deg);
}
/* les bandes restent dans les marges: elles ne croisent jamais le contenu */
.auth-ribbon.a {
  left: -10%; bottom: 7%;
  width: 30%; height: 52px;
  background: var(--auth-brand);
}
.auth-ribbon.b {
  left: -1%; bottom: 10.5%;
  width: 9%; height: 40px;
  background: #c2c8d0;
}
.auth-ribbon.c {
  right: -12%; top: 26%;
  width: 26%; height: 52px;
  background: var(--auth-brand);
}
@media (max-width: 1180px) { .auth-ribbon { display: none; } }

.auth-shell {
  position: relative;
  z-index: 1;
  padding: 56px 24px 96px;
  min-height: 100vh;
  box-sizing: border-box;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.auth-logo { display: flex; align-items: center; gap: 9px; color: var(--auth-brand);
  text-decoration: none; align-self: center; margin-bottom: 6px; }
.auth-logo svg { width: 30px; height: 20px; display: block; }
.auth-logo b { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }

.auth-card {
  width: 100%;
  max-width: 468px;
  background: var(--auth-card);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(60,66,87,.08), 0 1px 1px rgba(0,0,0,.06);
  overflow: hidden;
}
.auth-card-body { padding: 38px 40px 34px; }
.auth-card h1 { font-size: 24px; line-height: 1.25; font-weight: 600;
  letter-spacing: -.01em; margin: 0 0 26px; color: var(--auth-ink); }

.auth-field { margin-bottom: 18px; }
.auth-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-field label { display: block; font-size: 14px; font-weight: 500;
  color: var(--auth-ink); margin-bottom: 6px; }
.auth-field input, .auth-field select {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--auth-border); border-radius: 6px;
  background: #fff; color: var(--auth-ink); font: inherit; font-size: 15px;
  box-shadow: 0 1px 1px rgba(0,0,0,.02);
  transition: border-color .15s, box-shadow .15s;
}
.auth-field select { appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%238792a2' stroke-width='1.5'%3E%3Cpath d='M3 4.5 6 1.5l3 3M3 7.5 6 10.5l3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; }
.auth-field input:focus, .auth-field select:focus {
  outline: none; border-color: var(--auth-brand);
  box-shadow: 0 0 0 3px rgba(20,22,26,.12);
}
.auth-hint { font-size: 13px; color: var(--auth-faint); margin: 6px 0 0; }

.auth-link { color: var(--auth-brand); font-size: 14px; text-decoration: none;
  font-weight: 500; }
.auth-link:hover { text-decoration: underline; }

.auth-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 22px;
  font-size: 14px; color: var(--auth-dim); line-height: 1.45; }
.auth-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--auth-brand); flex: none; }

.auth-btn {
  width: 100%; height: 46px; border: 0; border-radius: 6px;
  background: var(--auth-brand); color: #fff; font: inherit; font-size: 15px;
  font-weight: 500; cursor: pointer; transition: opacity .15s;
}
.auth-btn:hover { opacity: .88; }
.auth-btn[disabled] { opacity: .55; cursor: default; }

.auth-alt { text-align: center; margin: 18px 0 0; display: grid; gap: 6px; }

.auth-card-foot {
  background: #f7fafc; border-top: 1px solid var(--auth-line);
  padding: 18px 40px; text-align: center; font-size: 14px; color: var(--auth-dim);
}

.auth-note {
  width: 100%; max-width: 468px; display: flex; gap: 11px; align-items: flex-start;
  border: 1px solid var(--auth-line); border-radius: 8px; background: transparent;
  padding: 16px 18px; font-size: 14px; color: var(--auth-dim); line-height: 1.5;
}
.auth-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--auth-faint); }

.auth-foot { display: flex; gap: 14px; font-size: 14px; color: var(--auth-faint);
  max-width: 468px; width: 100%; }
.auth-foot a { color: var(--auth-faint); text-decoration: none; }
.auth-foot a:hover { color: var(--auth-dim); }

.auth-msg { font-size: 14px; margin: 14px 0 0; min-height: 20px; }
.auth-msg[data-state="bad"] { color: #b4322a; }
.auth-msg[data-state="ok"] { color: #0f7a55; }

/* --- creation de compte: deux colonnes --- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  max-width: 1120px; width: 100%; align-items: start; }
.auth-pitch { padding-top: 78px; max-width: 430px; justify-self: end; }
.auth-pitch .auth-logo { margin-bottom: 34px; }
.auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.auth-pitch li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.auth-pitch svg { width: 17px; height: 17px; margin-top: 3px; color: var(--auth-brand); }
.auth-pitch h2 { font-size: 16px; font-weight: 600; margin: 0 0 5px; color: var(--auth-ink); }
.auth-pitch p { font-size: 15px; line-height: 1.5; color: var(--auth-dim); margin: 0; }
.auth-split .auth-card { max-width: 520px; }
.auth-split-foot { grid-column: 1; font-size: 14px; color: var(--auth-faint);
  justify-self: end; max-width: 430px; width: 100%; display: flex; gap: 14px; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; gap: 34px; }
  .auth-pitch { padding-top: 0; justify-self: stretch; max-width: none; }
  .auth-split .auth-card { justify-self: stretch; max-width: none; }
  .auth-split-foot { justify-self: stretch; max-width: none; }
  .auth-page::before { display: none; }
}
@media (max-width: 560px) {
  .auth-card-body { padding: 28px 22px 26px; }
  .auth-card-foot { padding: 16px 22px; }
  .auth-shell { padding: 30px 16px 28px; }
}

/* --- separateur avant les fournisseurs d'identite --- */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px;
  color: var(--auth-faint); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--auth-line); }

/* --- bouton d'un fournisseur d'identite --- */
.auth-provider {
  width: 100%; height: 46px; display: flex; align-items: center; justify-content: center;
  gap: 10px; border: 1px solid var(--auth-border); border-radius: 6px;
  background: #fff; color: var(--auth-ink); font: inherit; font-size: 15px;
  font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.auth-provider:hover { background: #f7fafc; border-color: #cfd6e0; }
.auth-provider svg { width: 18px; height: 18px; flex: none; }

/* --- robustesse du mot de passe --- */
.auth-meter { margin: 8px 0 0; }
.auth-meter-track { height: 4px; border-radius: 999px; background: var(--auth-line);
  overflow: hidden; }
.auth-meter-fill { height: 100%; width: 0; border-radius: 999px;
  background: #c0392b; transition: width .25s ease, background-color .25s ease; }
.auth-meter[data-level="1"] .auth-meter-fill { width: 25%;  background: #c0392b; }
.auth-meter[data-level="2"] .auth-meter-fill { width: 50%;  background: #d98324; }
.auth-meter[data-level="3"] .auth-meter-fill { width: 78%;  background: #0f7a55; }
.auth-meter[data-level="4"] .auth-meter-fill { width: 100%; background: #0f7a55; }
.auth-meter-label { font-size: 13px; margin: 6px 0 0; color: var(--auth-faint); }
.auth-meter[data-level="1"] .auth-meter-label { color: #c0392b; }
.auth-meter[data-level="2"] .auth-meter-label { color: #9a5b06; }
.auth-meter[data-level="3"] .auth-meter-label,
.auth-meter[data-level="4"] .auth-meter-label { color: #0f7a55; }
