.auth{
  padding: 32px 0 64px;
}

.auth-container{
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  place-items: center;
}

/* grosse section centrée */
.auth-panel{
  width: min(760px, 100%);
  border-radius: 28px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  overflow: hidden;
  position: relative;
}

/* fond premium */
.auth-panel__bg{
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(720px 320px at 18% 18%, rgba(109,92,255,.22), transparent 60%),
    radial-gradient(820px 360px at 88% 28%, rgba(43,212,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  pointer-events:none;
}

.auth-head{
  position: relative;
  padding: 26px 26px 10px;
}

.auth-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .4px;
  color: rgba(255,255,255,.92);
}

.auth-title{
  margin: 16px 0 6px;
  font-size: 40px;             /* + gros */
  letter-spacing: -0.9px;
  line-height: 1.08;
}

.auth-sub{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.70);
  max-width: 64ch;
}

/* form */
.auth-form{
  position: relative;
  padding: 14px 26px 26px;
  display: grid;
  gap: 14px;
}

.field label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,.82);
  letter-spacing: .2px;
  margin-bottom: 6px;
}

.control{
  display:flex;
  align-items:center;
  gap: 12px;

  height: 52px;                 /* hauteur uniforme (fix du champ password) */
  padding: 0 14px;              /* padding horizontal uniquement */

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}

.control:focus-within{
  border-color: rgba(43,212,255,.26);
  box-shadow: 0 0 0 4px rgba(43,212,255,.10);
}

.control i{
  width: 18px;
  text-align:center;
  color: rgba(255,255,255,.72);
  align-self: center;
}

.control input{
  width: 100%;
  height: 100%;                 /* prend la hauteur du control */
  padding: 0;                   /* évite les différences de hauteur */
  border: 0;
  outline: 0;
  background: transparent !important;

  color: rgba(255,255,255,.92);
  caret-color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1;
}

.control input::placeholder{
  color: rgba(255,255,255,.45);
}

/* Fond quand le navigateur remplit / autofill (Chrome/Edge) */
.control input:-webkit-autofill,
.control input:-webkit-autofill:hover,
.control input:-webkit-autofill:focus,
.control input:-webkit-autofill:active{
  -webkit-text-fill-color: rgba(255,255,255,.92) !important;
  transition: background-color 99999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px rgba(255,255,255,.00) inset !important;
  caret-color: rgba(255,255,255,.92) !important;
}

/* (Optionnel) si certains navigateurs mettent un fond sur :autofill */
.control input:autofill{
  filter: none;
}

/* Password toggle */
.control--pw{
  position: relative;
}

.pw-toggle{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  cursor: pointer;

  width: 36px;
  height: 36px;
  border-radius: 12px;

  display: grid;
  place-items: center;
  flex: 0 0 auto;
  align-self: center;           /* n’augmente pas la hauteur du champ */
  margin-left: auto;
}

.pw-toggle:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

.pw-toggle i{
  font-size: 14px;
}



.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.check{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  user-select:none;
}

.check input{
  width: 16px;
  height: 16px;
  accent-color: var(--brand-1);
}

/* Checkbox custom (CGV) */
.check--box{
  align-items: flex-start;
  gap: 12px;
}

.check--box input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-ui{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 4px rgba(0,0,0,.00);
  flex: 0 0 auto;
  margin-top: 2px;
  position: relative;
}

/* état hover sur le label */
.check--box:hover .check-ui{
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.07);
}

/* focus clavier */
.check--box input:focus-visible + .check-ui{
  box-shadow: 0 0 0 4px rgba(43,212,255,.12);
  border-color: rgba(43,212,255,.35);
}

/* coché */
.check--box input:checked + .check-ui{
  background: linear-gradient(135deg, rgba(43,212,255,.22), rgba(109,92,255,.22));
  border-color: rgba(43,212,255,.35);
}

/* check mark */
.check--box input:checked + .check-ui::after{
  content:"";
  position:absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,.95);
  border-bottom: 2px solid rgba(255,255,255,.95);
  transform: rotate(45deg);
}

/* désactivé */
.check--box input:disabled + .check-ui{
  opacity: .5;
}


.link{
  color: rgba(255,255,255,.82);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link:hover{
  color: rgba(255,255,255,.96);
}

.auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 12px;

  height: 50px;                /* gros CTA */
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(22, 14, 53, 0.95), rgba(14, 9, 57, 0.72));
  color: rgba(255,255,255,.94);
  font-weight: 900;
  letter-spacing: .2px;
  cursor: pointer;
}
.auth-btn:hover{ filter: brightness(1.06); }

.auth-foot{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding-top: 6px;
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hint{
  margin: 6px 0 0;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 720px){
  .auth{ padding: 24px 0 44px; }
  .auth-container{ width: calc(100% - 32px); }
  .auth-title{ font-size: 30px; }
  .grid2{ grid-template-columns: 1fr; }
  .auth-head{ padding: 20px 18px 8px; }
  .auth-form{ padding: 12px 18px 18px; }
}
