/* Source: public/register.php */
/* ——— register.php minimal UI that follows index.php palette ——— */
html, body{height:100%;}
body{
  background: radial-gradient(1200px 600px at 50% -10%, rgba(56,189,248,.12), transparent 60%),
              radial-gradient(900px 500px at 120% 10%, rgba(99,102,241,.10), transparent 55%),
              #0b1220;
  color: var(--text, #e5e7eb);
}

:root{
  --brand: var(--brand, #38bdf8);
  --bg: var(--bg, #0b1220);
  --card: var(--card, #0b1220);
  --line: var(--line, #1f2937);
  --text: var(--text, #e5e7eb);
  --muted: var(--muted, #9ca3af);
  --danger: #ef4444;
  --success: #10b981;
}
.auth-wrap{
  min-height: clamp(70vh, 80vh, 92vh);
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.auth-card{
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.auth-title{
  margin: 6px 0 18px;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--text);
}
.auth-form{
  display: grid;
  gap: 14px;
}
.field label{
  display:block;
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.field input{
  appearance: none; -webkit-appearance: none;
  width: 100%;
  background: #0a0f1b;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.field input:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(56,189,248,.18);
}
.hint{display:block; margin-top:6px; color: var(--muted);} 
.password-wrap{
  position: relative;
}
.password-wrap .eye{
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #111827;
  color: var(--text);
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ background: #162036; }
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(180deg, var(--brand), #1d4ed8 120%);
  border: 1px solid #0ea5e9;
}
.alert{
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
}
.alert ul{margin: 6px 0 0 18px;}
.alert-error{ border-color: rgba(239,68,68,.35); box-shadow: 0 0 0 3px rgba(239,68,68,.15) inset; }
.alert-success{ border-color: rgba(16,185,129,.35); box-shadow: 0 0 0 3px rgba(16,185,129,.15) inset; }

/* Password meter (basic) */
.meter{height: 6px; background: #0a0f1b; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; overflow: hidden;}
.meter i{display:block; height: 100%; width: 0%; background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981); transition: width .25s ease;}

/* Consent */
.consent { margin-top: 6px; }
.consent label{color: var(--text); font-size: 14px;}
.consent a{color: var(--brand); text-decoration: underline;}
/* Custom white checkmark for dark background */
.consent input[type="checkbox"]{
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 4px;
  display: inline-grid; place-content: center;
  background: transparent; border: 1.6px solid rgba(255,255,255,.85);
  outline: none; cursor: pointer; accent-color: #ffffff;
}
.consent input[type="checkbox"]::before{
  content: ""; width: 10px; height: 6px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0); transform-origin: center;
  transition: transform .12s ease;
}
.consent input[type="checkbox"]:checked::before{ transform: rotate(45deg) scale(1); }
.consent input[type="checkbox"]:focus-visible{ outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }

/* Small screens */
@media (max-width: 520px){
  .auth-card{padding: 18px;}
}

/* Hide the "Inscription" nav button on the registration page only */
body.page-register .nav a[href*="register.php"]{ display: none !important; }

