*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font:15px/1.45 Inter,"Segoe UI",Roboto,Arial,sans-serif;color:#0f172a}
body{background:#0b1530 url(backdrop.jpg) center/cover no-repeat fixed;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:20px}
.scrim{position:fixed;inset:0;background:radial-gradient(ellipse at center,rgba(11,21,48,.25),rgba(2,6,23,.7))}
.card{position:relative;width:min(440px,100%);background:#fff;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.45);padding:26px 26px 18px;animation:up .25s ease}
@keyframes up{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
header{display:flex;gap:14px;align-items:center;margin-bottom:18px}
header img{border-radius:50%;box-shadow:0 4px 14px rgba(0,0,0,.25)}
header div{flex:1}
h1{margin:0;font-size:22px;letter-spacing:-.01em;white-space:nowrap}
@media (max-width:420px){h1{font-size:19px}header{gap:10px}header img{width:46px;height:46px}}h1 span{color:#0ea5e9}
header p{margin:2px 0 0;color:#64748b;font-size:13px}
#lang{border:1px solid #cbd5e1;border-radius:8px;padding:5px 6px;background:#fff;font-weight:600}
h2{font-size:17px;margin:0 0 4px}
.muted{color:#475569;margin:0 0 14px;font-size:14px}
label{display:block;font-size:12.5px;color:#64748b;margin-bottom:5px}
input{width:100%;font-size:17px;padding:12px 13px;border:1.5px solid #cbd5e1;border-radius:10px;outline:none;transition:border-color .15s}
input:focus{border-color:#0ea5e9;box-shadow:0 0 0 3px rgba(14,165,233,.15)}
#code{font-size:26px;letter-spacing:.5em;text-align:center;font-variant-numeric:tabular-nums;padding-left:calc(13px + .5em)}
button{font:inherit;cursor:pointer}
.pri{width:100%;margin-top:14px;padding:13px;border:0;border-radius:10px;background:linear-gradient(135deg,#f59e0b,#f97316);color:#1c1003;font-weight:700;font-size:16px}
.pri:disabled{opacity:.6;cursor:wait}
.row{display:flex;justify-content:space-between;margin-top:10px}
.link{background:none;border:0;color:#0369a1;padding:4px 0;font-size:14px}.link:disabled{color:#94a3b8;cursor:default}
.hint{font-size:12.5px;color:#64748b;margin:12px 0 0}
#msg{min-height:20px;margin:12px 0 0;font-size:14px}#msg.ok{color:#15803d}#msg.err{color:#b91c1c}
footer{border-top:1px solid #e2e8f0;margin-top:14px;padding-top:12px;font-size:12px;color:#64748b}

/* Home vers cogenix.ai (05/12/2026) */
.home{position:fixed;top:14px;left:16px;z-index:50;display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:9px;border:1px solid rgba(201,162,92,.55);color:#f4e3bd;background:rgba(0,0,0,.35);text-decoration:none;font:600 13px system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;line-height:1}.home svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Arabe (05/12/2026) */
@font-face{font-family:"Noto Naskh Arabic";src:url(/login/noto-naskh-arabic-Regular.woff2) format("woff2");font-weight:400 500;font-display:swap}
@font-face{font-family:"Noto Naskh Arabic";src:url(/login/noto-naskh-arabic-Bold.woff2) format("woff2");font-weight:600 900;font-display:swap}
html[lang=ar] .card{font-family:"Noto Naskh Arabic",system-ui,sans-serif}
html[lang=ar] .card *{letter-spacing:0}
html[dir=rtl] #ttl,html[dir=rtl] #who,html[dir=rtl] #email,html[dir=rtl] #code{direction:ltr;unicode-bidi:isolate}

/* Mention d'auteur (05/12/2026) */
.card .auteur{margin:10px 0 0;font-size:12px;opacity:.7;text-align:center}
