/* Écran de connexion + fenêtres communes (compte, utilisateurs, nouveautés) — habillage v2.
   La connexion s'affiche avant toute page : jetons propres, valables hors body.embed. */
.auth-overlay{
  --a-bg:#F4F5F2; --a-card:#FFFFFF; --a-ink:#18212B; --a-muted:#5B6673; --a-line:#C3CAC0;
  --a-accent:#5A7F3F; --a-accent-strong:#4A6B32; --a-accent-soft:#E7EEFB; --a-danger:#B3261E; --a-danger-soft:#FBE6E4;
  background:var(--a-bg); color:var(--a-ink); font:400 15px/1.5 -apple-system,BlinkMacSystemFont,"Inter","Segoe UI",system-ui,-apple-system,"Segoe UI",sans-serif;
}
@media (prefers-color-scheme: dark){
  .auth-overlay{--a-bg:#0F1419; --a-card:#171E26; --a-ink:#E6EBF0; --a-muted:#9AA6B2; --a-line:#3A4755;
    --a-accent:#A4C97F; --a-accent-strong:#8AB0FF; --a-accent-soft:#1B2A45; --a-danger:#F07167; --a-danger-soft:#3A1A18; color-scheme:dark}
}
.auth-overlay form.auth-card.card{width:400px;max-width:100%;gap:14px;padding:32px;background:var(--a-card);border:1px solid var(--a-line);border-radius:16px;box-shadow:0 12px 40px rgba(20,30,40,.12)}
.auth-overlay .auth-card .brand{font-size:18px;font-weight:700;letter-spacing:-.01em;color:var(--a-ink)}
.auth-overlay .auth-card h3{font-size:24px;font-weight:600;letter-spacing:-.015em;margin:8px 0 0!important}
.auth-overlay .auth-card #auth-sub{color:var(--a-muted);font-size:14px;margin:0 0 4px!important}
.auth-overlay .auth-card label{gap:6px;font-size:13.5px;font-weight:500;color:var(--a-muted)}
.auth-overlay form.auth-card .input{height:44px;padding:0 14px;font-size:15px;border:1px solid var(--a-line);border-radius:8px;background:var(--a-card);color:var(--a-ink);width:100%}
.auth-overlay .auth-card .input:focus{border-color:var(--a-accent);box-shadow:0 0 0 3px var(--a-accent-soft);outline:none}
.auth-overlay .auth-error{padding:10px 12px;border-radius:8px;background:var(--a-danger-soft);color:var(--a-danger);font-size:14px;font-weight:500}
.auth-overlay .auth-card .btn.primary{height:46px;border-radius:8px;border:0;background:var(--a-accent);color:#fff;font-size:15px;font-weight:600;margin-top:4px;cursor:pointer}
@media (prefers-color-scheme: dark){.auth-overlay .auth-card .btn.primary{color:#0B1220}}
.auth-overlay .auth-card .btn.primary:hover{background:var(--a-accent-strong)}
.auth-overlay .auth-card .btn.primary:disabled{opacity:.6;cursor:wait}
.auth-overlay :focus-visible{outline:2px solid var(--a-accent);outline-offset:2px}

/* ---- Fenêtres communes (dans les pages intégrées) ---- */
body.embed .modal-backdrop{backdrop-filter:blur(2px);padding:16px}
body.embed #account-modal .modal,body.embed #users-modal .modal,body.embed #notice-modal .modal{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:28px;color:var(--text)}
body.embed #account-modal .modal.modal-lg{width:680px}
body.embed #users-modal .modal.modal-lg{width:760px}
body.embed #notice-modal .modal{width:520px}
body.embed #account-modal h3,body.embed #users-modal h3,body.embed #notice-modal h3{font-size:20px;margin:0 0 14px;font-weight:600}
body.embed #account-modal .section-title{font-size:13px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--sub);margin:24px 0 10px;padding-top:18px;border-top:1px solid var(--border)}
body.embed #account-modal h3 + .section-title{margin-top:0;padding-top:0;border-top:0}
body.embed .account-agent-status{background:var(--chip);border-radius:var(--radius-sm);padding:12px 14px;font-size:14px}
body.embed .account-steps{padding-left:20px;line-height:1.6}
body.embed .account-steps code,body.embed #account-modal code{background:var(--chip);padding:1px 6px;border-radius:5px;font-size:12.5px}
body.embed .account-actions a.btn{text-decoration:none}
body.embed .account-pw{gap:10px}
body.embed .check-inline{font-size:14px;color:var(--text);white-space:normal;gap:8px}
body.embed .check-inline input{width:18px;height:18px;accent-color:var(--accent)}
body.embed .users-create{gap:10px}
body.embed .user-row{background:var(--card);border-color:var(--border);padding:10px 14px}
body.embed .user-row:hover{background:var(--chip)}
body.embed .notice-items{padding-left:22px;gap:10px}
body.embed .notice-items li{font-size:15px;line-height:1.5}
@media (max-width:800px){
  body.embed .users-create{grid-template-columns:1fr 1fr}
  body.embed .user-row{grid-template-columns:1fr auto}
}
body.embed .toast{padding:11px 20px;font-weight:500;box-shadow:var(--shadow,0 6px 18px rgba(20,30,40,.2))}
