/* Pages d'inscription et de connexion */
.auth-page { background: var(--white); }

.auth { display: grid; min-height: 100svh; }

/* Panneau noir (bureau uniquement) */
.auth__side {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 56px;
  background: var(--black);
  color: var(--white);
}
.auth__side .logo { color: var(--white); }
.auth__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.auth__big em { font-style: normal; color: var(--pink); }
.auth__small { color: #bdbdbd; max-width: 340px; }

/* Formulaire */
.auth__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px var(--gutter) 48px;
  min-height: 100svh;
}
.auth__logo-mobile { align-self: flex-start; margin-bottom: 40px; }

.form { width: 100%; max-width: 400px; margin-inline: auto; }
.form__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.form__sub { margin: 10px 0 30px; color: var(--grey); font-size: .95rem; }
.form__sub a { color: var(--black); font-weight: 600; border-bottom: 2px solid var(--pink); }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 600; }
.field input {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--black);
  border-radius: 14px;
  background: var(--white);
  font: 400 1rem var(--font-body); /* 16px : évite le zoom sur iPhone */
  color: var(--black);
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #a5a5a5; }
.field input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 45, 135, .14); }

.field__pw { position: relative; }
.field__pw input { padding-right: 70px; }
.field__toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  padding: 8px 10px;
  border: 0; background: transparent;
  font: 600 .82rem var(--font-body);
  color: var(--grey);
  cursor: pointer;
}
.field__toggle:hover { color: var(--pink); }

.form__msg { min-height: 1.4em; margin: 2px 0 14px; font-size: .9rem; font-weight: 500; }
.form__msg.is-error { color: #d11a2a; }
.form__msg.is-success { color: #0a7a3d; }

.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

@media (min-width: 900px) {
  .auth { grid-template-columns: 1.05fr 1fr; }
  .auth__side { display: flex; }
  .auth__logo-mobile { display: none; }
  .auth__main { padding-inline: 56px; }
}
