/* Guest pages: login, sign-up, password reset, errors. Matches the mockup's Connexion screen. */

.auth {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: var(--s5) max(16px, env(safe-area-inset-right, 0px)) var(--s5) max(16px, env(safe-area-inset-left, 0px));
}
.auth__panel { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: var(--s4); }
.auth__logo {
  width: min(220px, 60vw); height: auto; margin: 0 auto;
  animation: logo-rise .9s ease-out both;      /* the logo itself is never altered — only faded in */
}
.auth__tagline { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.auth__tagline h1 { font-size: var(--fs-xl); }
.auth__tagline p { color: var(--muted); }
.auth__card { display: flex; flex-direction: column; gap: var(--s4); }
.auth__title { font-size: var(--fs-lg); }
.auth__foot { text-align: center; font-size: var(--fs-sm); color: var(--muted); }

/* Desktop: logo story on the left, form on the right */
@media (min-width: 960px) {
  .auth { grid-template-columns: 1fr 1fr; gap: var(--s6); max-width: 1120px; margin: 0 auto; }
  .auth__hero { display: flex !important; }
  .auth__panel > .auth__logo, .auth__panel > .auth__tagline { display: none; }   /* the hero already shows them */
}
.auth__hero {
  display: none; flex-direction: column; gap: var(--s4); align-items: flex-start;
}
.auth__hero img { width: 360px; height: auto; animation: logo-rise .9s ease-out both; }
.auth__hero h2 { font-size: var(--fs-2xl); font-weight: 800; }
.auth__hero p { color: var(--muted); max-width: 46ch; }
.auth__points { display: flex; flex-direction: column; gap: var(--s2); padding: 0; margin: 0; list-style: none; }
.auth__points li { display: flex; gap: var(--s2); align-items: baseline; }
.auth__points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 8px var(--leaf); flex: none; transform: translateY(-1px); }

@keyframes logo-rise { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
