/* Fasohouse — refonte des écrans d'authentification (connexion, inscription, mot de passe oublié) */

.auth {
  --auth-navy: oklch(0.18 0.03 265);
}

/* ----- Colonne formulaire ----- */
.auth__panel {
  padding: 1.5rem;
  min-width: 0;
}
@media (max-width: 30rem) {
  .auth__panel {
    padding: 1.25rem;
  }
}
.auth__form-wrap {
  width: 100%;
  max-width: 25rem;
}
.auth__form {
  gap: 1.5rem;
}
.auth__status + .auth__form,
.auth__mark + .auth__form {
  margin-top: 0;
}
.auth__form .input {
  min-width: 0;
}
.auth__form .button--block {
  height: auto;
  min-height: 2.75rem;
  padding-block: 0.6rem;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.auth__form h1 {
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* Logo affiché au-dessus du formulaire (surtout utile sur mobile) */
.auth__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
  color: var(--color-foreground);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
}
.auth__mark img {
  width: 2rem;
  height: 2rem;
}
@media (min-width: 64rem) {
  .auth__mark {
    display: none;
  }
}

/* Messages de session (ex. lien de réinitialisation envoyé) */
.auth__status {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md, 0.5rem);
  background: color-mix(in oklch, var(--color-success) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-success) 35%, transparent);
  color: color-mix(in oklch, var(--color-success-emphasis, var(--color-success)) 90%, var(--color-foreground));
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.auth__status svg {
  flex: none;
  margin-top: 0.1rem;
  font-size: 1.05rem;
}

/* ----- Panneau illustré (droite) ----- */
.auth__aside {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 3rem 3.25rem;
  background:
    linear-gradient(
      165deg,
      color-mix(in oklch, var(--color-primary) 55%, var(--auth-navy)) 0%,
      var(--auth-navy) 58%,
      oklch(0.32 0.08 55) 130%
    );
}
.auth__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/auth-illustration.svg") center / cover no-repeat;
  opacity: 0.92;
}
.auth__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--auth-navy) 62%, transparent) 0%,
    color-mix(in oklch, var(--auth-navy) 20%, transparent) 30%,
    color-mix(in oklch, var(--auth-navy) 70%, transparent) 58%,
    color-mix(in oklch, var(--auth-navy) 95%, transparent) 100%
  );
}

.auth__brand-name {
  font-size: 1.2rem;
}
.auth__brand-mark {
  overflow: hidden;
  background: oklch(1 0 0 / 0.12);
  backdrop-filter: blur(4px);
}
.auth__brand-mark img {
  width: 1.4rem;
  height: 1.4rem;
}

.auth__pitch {
  margin-top: auto;
  position: relative;
  text-shadow: 0 1px 12px color-mix(in oklch, var(--auth-navy) 80%, transparent);
}
.auth__pitch-title {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 350;
}
.auth__pitch-title span {
  font-weight: 600;
  color: color-mix(in oklch, var(--color-primary) 45%, #fff);
}
.auth__pitch-lede {
  color: color-mix(in oklch, #fff 72%, transparent);
}

/* Points forts en bas du panneau */
.auth__features {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.auth__features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.925rem;
  color: color-mix(in oklch, #fff 82%, transparent);
}
.auth__features svg {
  flex: none;
  font-size: 1.1rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.14);
  color: #fff;
}
