/* =========================
   HEADER
   ========================= */

.page2 .lunira-auth-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.8rem);
  color: #ffffff;
}

/* =========================
   NAV
   ========================= */

.page2 nav,
.page2 .lunira-auth-card nav {
  width: 100%;
  max-width: none;

  margin: 0 auto;

  text-align: center;
}

/* =========================
   CARD PREMIUM
   ========================= */

.page2 .lunira-auth-card {
  max-width: 560px;
} 
.page2 .lunira-auth-card:hover {
  transform: none;
}

/* =========================
   LISTE / BOUTONS
   ========================= */

.page2 ul {
  display: grid;
  gap: 1rem;

  width: 100%;

  margin: 0;
  padding: 0;

  list-style: none;
}

.page2 ul li {
  width: 100%;

  margin: 0;
  padding: 0;
}

.page2 .lunira-auth__button {
  width: 100%;

  min-height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1rem 1.25rem;

  border-radius: 20px;

  border: 1px solid rgba(255,255,255,.35);

  background: rgba(253,252,249,.94);

  color: #12252d;

  font-size: 1.08rem;
  font-weight: 800;

  text-align: center;
  text-decoration: none;

  white-space: normal;
  overflow-wrap: anywhere;

  cursor: pointer;

  box-shadow:
    0 14px 34px rgba(0,0,0,.22);

  transition:
    background .22s ease,
    color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.page2 .lunira-auth__button:hover,
.page2 .lunira-auth__button:focus-visible {
  background: #ffffff;
  color: #12252d;

  transform: translateY(-3px);

  box-shadow:
    0 18px 42px rgba(0,0,0,.28);
}

/* Connexion = bouton principal */
.page2 ul li:first-child a {
  background:
    linear-gradient(135deg, #94d2bd 0%, #4caaa3 100%);

  color: #08222b;
}

/* Nouveau compte = bouton secondaire */
.page2 ul li:nth-child(2) a {
  background: rgba(255,255,255,.10);

  color: #fdfcf9;

  border: 1px solid rgba(255,255,255,.35);
}

/* =========================
   AUTH BRAND
   ========================= */

.page2 .lunira-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;

  width: 100%;
  margin: 0 auto 1.25rem;

  color: #94d2bd;

  text-shadow: 0 0 18px rgba(148,210,189,.35);
}

.page2 .lunira-brand__moon {
  font-size: 3rem;
  line-height: 1;
}

.page2 .lunira-brand__star {
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-.45rem);
}


/* =========================
   RETOUR ACCUEIL
   ========================= */

.page2 .valider {
  display: flex;
  justify-content: center;

  margin-top: 1.5rem;
}

.page2 .valider a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
}

.page2 .valider img {
  width: 46px;
  height: 46px;

  padding: .35rem;

  border-radius: 50%;

  background: rgba(253,252,249,.94);

  box-shadow: 0 14px 34px rgba(0,0,0,.22);

  cursor: pointer;

  transition:
    background .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.page2 .valider img:hover,
.page2 .valider a:focus-visible img {
  background: #ffffff;

  transform: translateY(-2px) scale(1.04);

  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

/* =========================
   RESET PASSWORD / AUTH ALERTS
   conservé pour compatibilité
   ========================= */

.page2 .auth-container {
  z-index: 1;

  width: min(92vw, 560px);
  max-width: 560px;

  margin: 4rem auto;

  padding: 1rem;

  background-color: #fdfcf9;

  color: #12252d;

  border-radius: 24px;

  box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

.page2 .auth-alert {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  line-height: 1.5;
}

.page2 .auth-alert--success {
  background: #ecfdf5;
  border: 1px solid #10b98133;
  color: #065f46;
}

.page2 .auth-alert--waiting {
  background: #fcfdec;
  border: 1px solid #aeb91033;
  color: #5b5f06;
}

.page2 .auth-alert.auth-alert--warn {
  background: #fdecec;
  border: 1px solid #b9101033;
  color: #5f0606;
}

.page2 .auth-alert.auth-alert--warn ul {
  margin: 0;
  padding-left: 1.25rem;
}

.page2 .auth-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;

  margin-top: 1rem;
}

.page2 .auth-btn {
  display: inline-block;

  padding: .6rem 1rem;

  border-radius: 10px;

  border: 1px solid #e5e7eb;

  text-decoration: none;
}

.page2 .auth-btn--primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.page2 .auth-btn--link {
  background: transparent;
  color: #111827;
}

.page2 .auth-meta {
  margin-top: .5rem;

  color: #6b7280;

  font-size: .95rem;
}

.page2 .auth-small {
  font-size: .9rem;
}

/* =========================
   PAGE 3
   ========================= */

.page3 .lunira-auth__card {
  max-width: 560px;
}

.page3 .lunira-auth__title {
  font-size: clamp(2rem, 6vw, 3.8rem);
}

.page3 .lunira-auth__form {
  display: grid;
  gap: 1rem;
}

.page3 .lunira-auth__field {
  margin-bottom: 0;
}

.page3 .lunira-auth__button {
  width: 100%;
  margin-top: .5rem;
}

.page3 .valider {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.page3 .valider img {
  width: 46px;
  height: 46px;
  padding: .35rem;
  border-radius: 50%;
}

.page3 .lunira-auth__card {
  max-width: 560px;
}

/* Logo AUTH page3 */
.page3 .lunira-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;

  width: 100%;
  margin: 0 auto 1.25rem;

  color: #94d2bd;
  text-shadow: 0 0 18px rgba(148,210,189,.35);
}

.page3 .lunira-brand__moon {
  font-size: 3rem;
  line-height: 1;
}

.page3 .lunira-brand__star {
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-.45rem);
}

/* La carte ne doit PAS sembler cliquable */
.page3 .lunira-auth__card:hover {
  transform: none;
}

/* Bouton connexion */
.page3 .lunira-auth__button {
  width: 100%;
  min-height: 54px;

  margin-top: .75rem;

  font-size: 1.08rem;
  font-weight: 700;
}

/* Retour */
.page3 .valider {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.page3 .valider a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  border-radius: 50%;

  background: rgba(253,252,249,.94);

  box-shadow: 0 14px 34px rgba(0,0,0,.22);

  transition:
    background .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.page3 .valider a:hover,
.page3 .valider a:focus-visible {
  background: #ffffff;

  transform: translateY(-2px) scale(1.04);

  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

.page3 .valider img {
  width: 40px;
  height: 40px;

  padding: .35rem;

  margin: 0;

  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* ====== page3_bisNouveauCompte ======= */

.page3 .messageChoixInscriptionLangueMaternelle {
  margin-bottom: 1.5rem;
}

.page3 .password-wrapper {
  position: relative;
}

.page3 .pw-toggle {
  position: absolute;

  top: 50%;
  right: .65rem;

  transform: translateY(-50%);

  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0;

  border: none;
  border-radius: 50%;

  background: transparent;

  cursor: pointer;

  box-shadow: none;
}

.page3 .pw-toggle:hover,
.page3 .pw-toggle:focus-visible {
  background: rgba(148,210,189,.18);

  transform: translateY(-50%) scale(1.04);
}

.page3 .pw-toggle .icon-eye {
  width: 20px;
  height: 20px;

  color: #5b6470;
  fill: currentColor;
}

.page3 #mot_de_passe {
  padding-right: 3rem;
}

.page3 .lunira-auth__input,
.page3 input {
  outline-offset: 2px;
}

/* =========================
   RESET FORM
   ========================= */

.resetForm label {
  display: block;

  margin-bottom: 5px;

  font-weight: bold;
}

.resetForm input {
  width: 100%;

  padding: 10px;

  border: 1px solid #ccc;

  border-radius: 5px;
}

.resetForm button {
  width: 100%;

  margin-top: 15px;

  padding: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 10px;

  background: linear-gradient(135deg, #94d2bd 0%, #4caaa3 100%);

  color: #08222b;

  font-weight: 800;

  cursor: pointer;

  box-shadow: 0 14px 34px rgba(0,0,0,.18);

  transition:
    background .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.resetForm button:hover,
.resetForm button:focus-visible {
  background: #ffffff;

  transform: translateY(-2px);

  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

/* =========================
   HONEYPOT ANTIBOT
   ========================= */

.pfou {
  position: absolute !important;

  width: 1px;
  height: 1px;

  margin: -1px;
  padding: 0;

  border: 0;

  overflow: hidden;

  clip: rect(0 0 0 0);
  clip-path: inset(50%);

  white-space: nowrap;

  opacity: 0;

  pointer-events: none;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 640px) {
  .page2 .lunira-auth-main {
    align-items: flex-start;

    padding-top: 2.5rem;
  }

  .page2 .lunira-auth-card {
    border-radius: 26px;
  }
}

@media (max-width: 376px) {
  .page2 .lunira-auth-title {
    font-size: 2rem;
  }

  .page2 .lunira-auth-card {
    width: min(94vw, 560px);

    padding: 1.1rem;

    border-radius: 24px;
  }

  .page2 .choix {
    font-size: 1rem;
  }

  .page2 .lunira-auth__button {
    font-size: 1rem;
    padding: .9rem;
  }

  .page2 .lunira-footer {
    font-size: .875rem;
  }
}
