/* Police Inter : déclarée par /fonts/inter.css (servie par le serveur seulement si le fichier existe) */
:root {
  --bg: #0b1626; --card: #ffffff; --text: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --brand: #124188; --brand-2: #997ADB; --danger: #dc2626; --ok: #059669;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
  background: radial-gradient(1200px 600px at 15% -10%, #124188 0%, transparent 60%),
              radial-gradient(900px 500px at 100% 110%, #0B2B5E 0%, transparent 55%), var(--bg);
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--card); border-radius: 18px; padding: 34px 32px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: rise .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand img { width: 44px; height: 44px; border-radius: 11px; }
.brand b { display: block; font-size: 11px; letter-spacing: .14em; color: var(--brand); font-weight: 800; }
.brand span { font-size: 17px; font-weight: 800; }
h1 { font-size: 20px; margin: 0 0 4px; font-weight: 800; }
.sub { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
label { display: block; font-size: 12px; font-weight: 700; color: #334155; margin: 14px 0 6px; }
input, select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px;
  background: #f8fafc; color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(35,90,164,.14); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0; border-radius: 10px;
  padding: 11px 16px; font: inherit; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--brand), #124188); transition: transform .12s, box-shadow .15s, opacity .15s;
}
.btn:hover { box-shadow: 0 8px 20px rgba(35,90,164,.35); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn.block { width: 100%; margin-top: 22px; padding: 13px; }
.btn.ghost { background: #eef2f7; color: #1e293b; }
.btn.ghost:hover { box-shadow: none; background: #e2e8f0; }
.btn.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.btn.small { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.msg { margin-top: 14px; font-size: 13px; padding: 10px 12px; border-radius: 10px; display: none; line-height: 1.45; }
.msg.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.msg.ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.foot { margin-top: 20px; text-align: center; font-size: 11.5px; color: #94a3b8; }
[hidden] { display: none !important; }

/* ---------- Logos Elit (public/brand/) ---------- */
.has-logo .brand-fallback { display: none !important; }
.brand img.alogo { width: auto; height: 44px; border-radius: 0; }
.brand.has-logo span { font-size: 15px; border-left: 1px solid var(--line); padding-left: 12px; }
