:root{
  --bg1:#0f172a; --bg2:#1e293b; --card:#0b1220e6; --border:#22304a; --txt:#e5e7eb; --muted:#94a3b8; --accent:#38bdf8;
}
*{box-sizing:border-box}html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:linear-gradient(135deg,var(--bg1),var(--bg2));
  color:var(--txt)
}

/* Header */
.header-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px}
.brand{display:flex;align-items:center;gap:12px}
.brand .title{margin:0;font-size:1.35rem;letter-spacing:.3px}
.brand .subtitle{margin:2px 0 0;color:var(--muted);font-size:.95rem}

/* (ancien sélecteur) .lang — et duplication pour .lang-switch */
.lang a,
.lang-switch a{
  display:inline-block;margin-left:8px;opacity:.9;transition:transform .15s ease,opacity .15s ease
}
.lang a:hover,
.lang-switch a:hover{transform:translateY(-1px);opacity:1}
.lang img,
.lang-switch img{height:22px;width:auto;border-radius:4px;display:block}

/* Contenu */
.main-auth{max-width:560px;margin:28px auto;padding:0 16px}
.card{
  background:var(--card);backdrop-filter:blur(8px);
  border:1px solid var(--border);border-radius:14px;padding:22px;
  box-shadow:0 10px 40px rgba(0,0,0,.35)
}
h1,h2{margin:0}
.auth-title{margin:0 0 10px;font-size:1.55rem}

.form-row{margin-bottom:14px}
.form-row label{display:block;margin-bottom:6px;font-weight:600;color:#dbeafe}
.form-row input,.form-row select{
  width:100%;padding:12px;border:1px solid #334155;border-radius:10px;
  background:#0b1220;color:#e2e8f0;outline:none;transition:border-color .15s ease,box-shadow .15s ease
}
.form-row input:focus,.form-row select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(56,189,248,.15)}

.actions{
  display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:14px;flex-wrap:wrap
}
.btn{
  display:inline-block;padding:11px 16px;border-radius:10px;text-decoration:none;
  border:1px solid #0ea5e9;background:linear-gradient(180deg,#38bdf8,#0ea5e9);
  color:#06121f;cursor:pointer;font-weight:700
}
.btn:hover{filter:brightness(1.05)}
.link{color:#93c5fd;text-decoration:none}
.note{color:var(--muted);font-size:.9rem;margin-top:8px}

.error{
  color:#fecaca;background:#7f1d1d33;padding:10px;border-radius:10px;border:1px solid #7f1d1d88;margin-bottom:10px
}
.success{
  color:#bbf7d0;background:#14532d33;padding:10px;border-radius:10px;border:1px solid #14532d88;margin-bottom:10px
}

.show-pass{display:inline-flex;align-items:center;gap:6px;font-size:.9rem;color:#cbd5e1}
.logo img{height:56px;width:auto;display:block}

/* =========================== */
/* STYLES DU BLOC RÈGLEMENT    */
/* =========================== */
.reglement-block { margin: 12px 0 18px; }
.reglement-block .center { display: flex; justify-content: center; margin-bottom: 10px; }
.btn-reglement{
  display:inline-block;padding:8px 14px;border-radius:8px;background:#0d6efd;
  color:#fff !important;text-decoration:none;font-weight:700
}
.btn-reglement:hover{background:#0b5ed7}

/* =========================== */
/* STYLES DES CASES À COCHER   */
/* =========================== */
.form-row.check{
  display:flex;align-items:center;gap:10px;margin:6px 0;justify-content:flex-start
}
.form-row.check input[type="checkbox"]{
  width:18px;height:18px;cursor:pointer;accent-color:#0d6efd
}

/* Responsive */
@media (max-width:720px){
  .brand .title{font-size:1.15rem}
  .header-hero{padding:14px 16px}
  .card{padding:18px}
}
