/* ALLO AVOCAT : pages de connexion et d'inscription.
   Même style que les tableaux de bord, aux couleurs du projet (noir pur, blanc pur, touche d'or) :
   ordinateur : cadre noir arrondi, panneau de présentation à gauche, formulaire sur panneau blanc ;
   téléphone : une carte noire de présentation, puis le formulaire.
   Pas d'ombre portée ni de dégradé. */

.auth-frame {
  display: block;
}
.auth-main.container {
  padding-top: 0.25rem;
}

/* ---------- Panneau de présentation (carte noire) ---------- */
.auth-side {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  margin: 0.5rem 1rem 0.25rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 24px;
  background: var(--black);
  color: var(--page);
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--page);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.auth-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--black);
}
.auth-side h2 {
  position: relative;
  margin: 0;
  max-width: 16em;
  color: var(--page);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
/* Mot entouré, comme « free » sur le modèle, en or */
.auth-pill {
  display: inline-block;
  padding: 0 0.6rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--pill);
  color: var(--gold);
  font-style: italic;
  line-height: 1.35;
}
.auth-side > p {
  position: relative;
  margin: 0;
  max-width: 28em;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}
.auth-points {
  position: relative;
  display: none;
  gap: 0.7rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}
.auth-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}
.auth-points .tick {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--black);
}
.auth-points svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Cartes dessinées au trait, en bas à droite */
.auth-art {
  position: absolute;
  inset-inline-end: 0;
  bottom: -30px;
  width: 150px;
  height: 120px;
  fill: none;
  stroke: rgba(201, 162, 39, 0.55);
  stroke-width: 1.5;
  pointer-events: none;
}
:root[dir='rtl'] .auth-art {
  transform: scaleX(-1);
}
.auth-head {
  display: none;
}

/* ---------- Formulaire : carte blanche sans filet, champs en pilule ---------- */
.auth-main .card {
  border: none;
  padding-inline: 0.25rem;
}
.auth-main .card > h1 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Ordinateur ---------- */
@media (min-width: 900px) {
  .auth-body .topbar {
    display: none;
  }
  .auth-frame {
    display: flex;
    width: calc(100% - 3rem);
    max-width: 1180px;
    min-height: calc(100vh - 7rem);
    margin: 2rem auto 0;
    padding: 14px;
    border-radius: 36px;
    background: var(--black);
  }
  .auth-side {
    width: 42%;
    flex-shrink: 0;
    margin: 0;
    padding: 2.5rem 2.25rem;
    gap: 1.25rem;
    border-radius: 0;
    background: none;
  }
  .auth-brand {
    font-size: 1.2rem;
    margin-block-end: 3rem;
  }
  .auth-brand .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }
  .auth-brand .brand-mark svg {
    width: 24px;
    height: 24px;
  }
  .auth-side h2 {
    font-size: 2.2rem;
    line-height: 1.25;
  }
  .auth-side > p {
    font-size: 0.95rem;
  }
  .auth-points {
    display: grid;
  }
  .auth-art {
    width: 230px;
    height: 180px;
    inset-inline-end: 10px;
    bottom: -20px;
  }
  .auth-main.container {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 1.5rem 2rem 2.5rem;
    border-radius: 28px;
    background: var(--page);
  }
  /* Langue en haut du panneau blanc */
  .auth-head {
    display: flex;
    justify-content: flex-end;
  }
  .auth-head .top-pill {
    border-color: transparent;
    background: #f3f5f8;
  }
  .auth-main .screen {
    max-width: 460px;
    margin: 1.5rem auto 0;
  }
  /* Inscription avocat : formulaire plus long, le panneau de gauche reste visible */
  .auth-frame.is-long {
    align-items: flex-start;
  }
  .auth-frame.is-long .auth-side {
    position: sticky;
    top: 14px;
  }
  .auth-frame.is-long .screen {
    max-width: 560px;
  }
}
