/* =========================================================
   CROCS-MINILUS — AUTH MODULE
   Pages: login / register / forgot / reset / verify
   Scope: .cm-auth / .cm-auth__*
   ========================================================= */

body.cm-auth{
  min-height: 100svh;
}

.cm-auth__wrap{
  width: 100%;
  min-height: 100svh;
  box-sizing: border-box;

  display: grid;
  place-items: center;

  padding: clamp(88px, 10vh, 126px) 16px 48px;
}

/* Carte principale */
.cm-auth__card{
  position: relative;
  width: min(560px, 100%);
  margin: 0 auto;
  overflow: visible;

  border-radius: 24px;
  padding: 140px 18px 14px;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 24px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(6px);

  color: #241f1a;
}

/* Mascotte */
.cm-auth__mascot{
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.cm-auth__mascot img{
  width: 130px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.25));
}

/* Titre */
.cm-auth__title{
  margin: 14px 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .2px;
  color: #1f1a15;
}

/* Alertes */
.cm-auth__alert{
  border-radius: 16px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.35;
}

.cm-auth__alert--ok{
  background: rgba(60,160,90,.14);
  border: 1px solid rgba(60,160,90,.28);
  color: #134c26;
}

.cm-auth__alert--err{
  background: rgba(180,60,60,.12);
  border: 1px solid rgba(180,60,60,.26);
  color: #651919;
}

/* Formulaire */
.cm-auth__form{
  display: grid;
  gap: 12px;
  min-width: 0;
}

.cm-auth__label{
  position: relative;
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.cm-auth__input{
  width: 100%;
  max-width: 100%;
  min-inline-size: 0;
  box-sizing: border-box;
  overflow: hidden;

  border-radius: 16px;
  padding: 12px 46px 12px 12px;

  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.12);
  color: #241f1a;
  outline: none;
}

.cm-auth__input:focus{
  border-color: rgba(47,42,36,.45);
  box-shadow: 0 0 0 4px rgba(47,42,36,.10);
}

.cm-auth__hint{
  font-size: 12px;
  color: rgba(36,31,26,.75);
  font-weight: 700;
}

/* Checkbox */
.cm-auth__check{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.cm-auth__check input{
  accent-color: #2f2a24;
}

/* Bouton principal */
.cm-auth__btn{
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;

  font-weight: 900;
  cursor: pointer;

  background: #2f2a24;
  color: #fff;

  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.cm-auth__btn:hover{
  transform: translateY(-1px);
  background: #1f1a15;
  box-shadow: 0 14px 26px rgba(0,0,0,.28);
}

/* Liens */
.cm-auth__links{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  color: rgba(36,31,26,.75);
  font-weight: 800;
}

.cm-auth__links a{
  color: #2c241d;
  text-decoration: none;
  border-bottom: 1px solid rgba(44,36,29,.25);
  transition: border-color .2s ease;
}

.cm-auth__links a:hover{
  border-bottom-color: rgba(44,36,29,.60);
}

/* Honeypot */
.cm-auth__hp{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer sur pages auth:
   - pleine largeur
   - sous la ligne de flottaison au chargement
   - pas de dégradé qui remonte dans le viewport */
body.cm-auth .cm-site-footer{
  width: 100%;
  margin-top: 0;
}

body.cm-auth .cm-site-footer::before,
body.cm-auth .cm-site-footer::after{
  display: none;
}

/* Mobile */
@media (max-width: 480px){
  .cm-auth__wrap{
    padding: 82px 12px 34px;
  }

  .cm-auth__card{
    padding: 100px 14px 12px;
  }

  .cm-auth__title{
    font-size: 22px;
  }

  .cm-auth__mascot{
    top: -40px;
  }

  .cm-auth__mascot img{
    width: 110px;
  }
}

/* QCM inscription : source de découverte */
.cm-auth__fieldset{
  display: grid;
  gap: 10px;
  margin: 2px 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(47,42,36,.16);
  background: rgba(255,255,255,.54);
}

.cm-auth__fieldset legend{
  padding: 0 6px;
  color: #241f1a;
  font-weight: 900;
}

.cm-auth__radio-list{
  display: grid;
  gap: 8px;
}

.cm-auth__radio{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.035);
  border: 1px solid rgba(0,0,0,.07);
  color: #241f1a;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.cm-auth__radio input{
  margin-top: 2px;
  accent-color: #2f2a24;
}

.cm-auth__radio:has(input:checked){
  background: rgba(125,91,48,.14);
  border-color: rgba(125,91,48,.30);
}

.cm-auth__other{
  display: grid;
  gap: 6px;
  font-weight: 800;
}
