.auth-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 16% 8%, #122d52 0, transparent 48%),
    radial-gradient(ellipse at 90% 95%, #11483c 0, transparent 46%), #080a18;
}
.auth-shell {
  width: min(100%, 460px);
  padding: clamp(22px, 6vw, 40px);
  border: 1px solid #2e3a56;
  border-radius: 24px;
  background: #10172a;
  box-shadow: 0 24px 70px #03071280;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f7f8ff;
  margin-bottom: 24px;
}
.auth-brand span {
  color: #56e3c7;
  font-size: 25px;
}
.auth-page h1 {
  margin: 0;
  font-size: clamp(26px, 6vw, 34px);
  letter-spacing: -0.035em;
}
.auth-page .note {
  margin: 10px 0 0;
  line-height: 1.5;
}
.auth-page .auth-links {
  margin: 14px 0 0;
}
.auth-page .auth-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-underline-offset: 4px;
}
/* « Mot de passe oublié ? » juste sous le champ, aligné à droite. */
.auth-page .auth-forgot {
  display: flex;
  justify-content: flex-end;
  width: max-content;
  min-height: 44px;
  align-items: center;
  margin: -6px 0 2px auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.auth-page .auth-forgot:hover,
.auth-page .auth-forgot:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-page .primary:disabled {
  cursor: wait;
  opacity: 0.6;
}
.password-field {
  display: grid;
  gap: 8px;
}
.password-entry {
  position: relative;
}
#auth-form .password-entry input {
  padding-right: 52px;
}
.password-toggle {
  display: grid;
  place-items: center;
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #a7b4ce;
}
.password-toggle:hover {
  color: #e8f5ff;
  background: #192842;
}
.password-toggle:focus-visible {
  outline-offset: -3px;
}
.password-eye {
  position: relative;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 72% 17%;
  transform: rotate(45deg);
}
.password-eye::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.password-toggle.is-visible .password-eye::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 1px #0c1225;
}
#auth-form .remember-session {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  cursor: pointer;
}
#auth-form .remember-session input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: #36dfbc;
}
@media (max-width: 480px) {
  .auth-page {
    padding: max(16px, env(safe-area-inset-top)) 14px
      max(16px, env(safe-area-inset-bottom));
  }
  .auth-shell {
    border-radius: 20px;
  }
}

/* Arrivée par le lien d'invitation d'un ami. */
.auth-invite {
  margin: 18px 0 0;
  padding: 10px 14px;
  border: 1px solid #27dcb566;
  border-radius: 12px;
  background: #27dcb51a;
  color: #c9f3e6;
  font-size: 14px;
  line-height: 1.5;
}
#pseudo-help.bad {
  color: #ffb0ad;
}
