/* style-auth.css - Auth pages (login/register) */
:root{
  --bg: #0b0b1f;
  --panel: #0f1228;
  --accent: #7d5df0;
  --accent-2: #4aa3ff;
  --text: #ffffff;
  --muted: #cfcfe6;
  --line: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.03);
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--muted);
  background: linear-gradient(180deg, #171751 0%, #0b0b1f 60%, #11102c 100%);
}

/* Hero: plus d'air et typos plus larges */
.auth-hero{
  text-align:center;
  padding: 140px 6% 22px;            /* était 56 / 10 */
}
.auth-title{
  font-family: "Press Start 2P", monospace;
  color:#fff;
  font-size:40px;                   /* + */
  letter-spacing:2px;
  margin:0 0 12px;
  text-transform: uppercase;
}
.auth-sub{
  max-width: 1000px;                /* + */
  margin:0 auto;
  color: rgba(255,255,255,0.88);
  line-height:1.8;
  font-size:18px;                   /* + */
}

/* Wrapper: carte plus large et centrée */
.auth-wrap{
  max-width: 980px;                 /* était 720 */
  margin: 24px auto 120px;          /* plus de marge basse */
  padding: 0 6%;
}

/* Card/form: plus haute et généreuse */
.auth-form{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 18px;              /* + */
  box-shadow: 0 22px 60px rgba(8,6,25,0.6);
  padding: 28px;                    /* + */
}

.alert{
  margin-bottom: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
}
.alert.error{ background: rgba(255, 74, 74, 0.08); color: #ff9b9b; border:1px solid rgba(255,74,74,0.18); }
.alert.success{ background: rgba(74, 255, 164, 0.08); color: #a7ffd8; border:1px solid rgba(74,255,164,0.18); }

.form-row{
  display: grid;
  gap: 16px;                         /* + */
  margin-bottom: 14px;
}
.form-row.one{ grid-template-columns: 1fr; }
.form-row.two{ grid-template-columns: 1fr 1fr; }
.form-row.between{
  grid-template-columns: 1fr 1fr; align-items:center;
}

.form-field label{
  display:block;
  color:#fff;
  font-weight:800;
  font-size:15px;                    /* + */
  margin-bottom:10px;                /* + */
}
.form-field input,
.form-field select,
.form-field textarea{
  width:100%;
  padding: 16px 16px;                /* + */
  border-radius:14px;                /* + */
  border:1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color:#fff;
  font-size:16px;                    /* + */
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  color-scheme: dark; -webkit-appearance:none; appearance:none;
}
.form-field input::placeholder{ color: rgba(255,255,255,0.56); }
.form-field input:focus{
  border-color: rgba(125,93,240,0.45);
  box-shadow: 0 0 0 4px rgba(125,93,240,0.16);  /* + */
  background-color: rgba(255,255,255,0.03);
}

/* Password toggle, mieux aligné avec les champs plus hauts */
/* --- Password fields: alignement parfait du bouton œil --- */
.pw-field {
  position: relative;
}

/* on réserve de la place pour le bouton à droite */
.pw-field input {
  padding-right: 56px; /* 40px bouton + marges */
}

/* bouton œil centré verticalement, quelle que soit la taille de l’input */
.pw-toggle{
  position: absolute;
  right: 6px;
  top: 68%;
  transform: translateY(-50%);   /* <-- la clé */
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* léger hover */
.pw-toggle:hover { transform: translateY(-50%) translateY(-2px); }  



.pw-field-log {
  position: relative;
}

/* on réserve de la place pour le bouton à droite */
.pw-field-log input {
  padding-right: 56px; /* 40px bouton + marges */
}

/* bouton œil centré verticalement, quelle que soit la taille de l’input */
.pw-toggle-log{
  position: absolute;
  right: 6px;
  top: 68%;
  transform: translateY(-50%);   /* <-- la clé */
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* léger hover */
.pw-toggle-log:hover { transform: translateY(-50%) translateY(-2px); }  

/* Remember & forgot */
.remember{
  color: rgba(255,255,255,0.9);
  font-size:15px;
  display:flex; align-items:center; gap:10px;
}
.remember input{ width:18px; height:18px; accent-color: var(--accent); }
.forgot{ color: var(--muted); text-decoration:none; font-weight:800; }
.forgot:hover{ color:#fff; }

/* Buttons, plus costauds */
.form-actions{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top: 10px;
}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 18px;                 /* + */
  border-radius:14px;                /* + */
  font-weight:800; text-decoration:none; border:1px solid transparent; cursor:pointer;
  font-size:16px;                    /* + */
  transition: transform .12s ease, box-shadow .18s ease;
}
.btn.primary{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color:#fff; border-color: rgba(255,255,255,0.06);
  box-shadow: 0 14px 40px rgba(125,93,240,0.14);
}
.btn.primary:hover{ transform: translateY(-3px); }
.btn.ghost{
  background: transparent; color: var(--muted); border-color: var(--line);
}
.btn.ghost:hover{ transform: translateY(-3px); color:#fff; }

/* Responsive */
@media (max-width: 980px){
  .auth-title{ font-size: 32px; }
  .auth-sub{ font-size: 16px; }
  .auth-wrap{ max-width: 720px; }
}
@media (max-width: 720px){
  .auth-title{ font-size: 26px; }
  .auth-sub{ font-size: 14px; }
  .auth-wrap{ max-width: 600px; margin-bottom: 96px; }
  .auth-form{ padding: 22px; }
  .form-field input{ font-size:15px; padding:14px 14px; }
    .pw-field input { padding-right: 48px; }
  .pw-toggle{
    width: 36px;
    height: 36px;
    right: 6px;
    /* top:50% + translateY(-50%) reste identique */
  }
    .pw-toggle-log{
    width: 36px;
    height: 36px;
    right: 4px;
    /* top:50% + translateY(-50%) reste identique */
  }
}
