/* DevisPro — écran de connexion. Reprend les variables de la maquette (p1_head.html) : graphite, plâtre, ruban jaune. */
html.dp-auth-on, html.dp-auth-on body { overflow: hidden; }
.dp-auth {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg, #ECEEF1); color: var(--ink, #1B232C);
  font-family: var(--f-body, system-ui, sans-serif); font-size: 16px; line-height: 1.45;
  display: flex; flex-direction: column;
}
.dp-auth *, .dp-auth *::before, .dp-auth *::after { box-sizing: border-box; }
/* Ruban de chantier en haut de page */
.dp-tape { flex: none; height: 8px; background: repeating-linear-gradient(135deg, var(--tape, #F2C200) 0 14px, var(--brand, #232C36) 14px 28px); }
.dp-main { flex: 1; width: 100%; max-width: 460px; margin: 0 auto; padding: 28px 16px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
@media (max-height: 640px), (max-width: 420px) { .dp-main { justify-content: flex-start; padding-top: 18px; } }
.dp-card { background: var(--surface, #fff); border: 1px solid var(--line, #D8DDE3); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.dp-card-tape { height: 5px; background: repeating-linear-gradient(135deg, var(--tape, #F2C200) 0 8px, transparent 8px 16px); opacity: .9; }
.dp-card-in { padding: 20px 20px 22px; }
@media (max-width: 380px) { .dp-card-in { padding: 18px 14px 20px; } }
.dp-brand { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-display, "Arial Narrow", sans-serif); font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: .01em; }
.dp-logo { width: 34px; height: 34px; border-radius: 7px; flex: none; display: block;
  background: repeating-linear-gradient(135deg, var(--tape, #F2C200) 0 7px, var(--brand, #232C36) 7px 14px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.dp-tag { margin: 8px 0 16px; color: var(--muted, #47525E); font-size: 15px; }
.dp-note { border-left: 4px solid var(--ok, #1D8A4C); background: var(--oksoft, #DCF2E5); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; font-size: 15px; }
/* Onglets : contrôle segmenté, comme dans l'application */
.dp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface2, #F5F6F8); border: 1px solid var(--line, #D8DDE3); margin-bottom: 16px; }
.dp-tabs [role=tab] { min-height: 44px; border: 0; border-radius: 7px; background: none; color: var(--muted, #47525E); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; padding: 6px 8px; }
.dp-tabs [role=tab][aria-selected=true] { background: var(--brand, #232C36); color: var(--onbrand, #fff); }
.dp-tabs [role=tab]:focus-visible { outline: 3px solid var(--tape, #F2C200); outline-offset: 1px; }
.dp-form { display: flex; flex-direction: column; gap: 14px; }
.dp-h2 { margin: 0; font-family: var(--f-display, "Arial Narrow", sans-serif); font-size: 26px; line-height: 1.1; outline: none; }
.dp-p { margin: -4px 0 0; color: var(--muted, #47525E); font-size: 15px; }
.dp-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dp-field label { font-weight: 600; font-size: 15px; }
.dp-hint { margin: -2px 0 0; color: var(--muted, #47525E); font-size: 13.5px; }
.dp-field input { width: 100%; min-width: 0; min-height: 48px; border: 1.5px solid var(--line, #D8DDE3); background: var(--surface, #fff); color: var(--ink, #1B232C);
  border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 16px; }
.dp-field input:focus { border-color: var(--ink, #1B232C); outline: 2px solid var(--mat, #1F63D6); outline-offset: 1px; }
.dp-field input[aria-invalid=true] { border-color: var(--bad, #C53A3A); }
.dp-pw { position: relative; display: flex; }
.dp-pw input { padding-right: 104px; }
.dp-eye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); min-height: 42px; min-width: 92px; border: 0; border-radius: 7px; background: none;
  color: var(--ink, #1B232C); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dp-eye:hover { background: var(--surface2, #F5F6F8); }
.dp-err { margin: 0; color: var(--bad, #C53A3A); font-weight: 600; font-size: 14px; }
.dp-err::before { content: "⚠ "; }
.dp-alert { border-left: 4px solid var(--bad, #C53A3A); background: var(--badsoft, #FBE2E2); color: var(--ink, #1B232C); border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: 15px; outline: none; }
.dp-ok { border-left: 4px solid var(--ok, #1D8A4C); background: var(--oksoft, #DCF2E5); border-radius: 8px; padding: 12px; font-size: 15px; overflow-wrap: anywhere; }
.dp-btn { min-height: 50px; width: 100%; border: 1px solid var(--brand, #232C36); background: var(--brand, #232C36); color: var(--onbrand, #fff); border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; padding: 10px 16px; margin-top: 2px; }
.dp-btn:hover { filter: brightness(1.12); }
.dp-btn:disabled { opacity: .6; cursor: progress; }
.dp-btn:focus-visible, .dp-link:focus-visible, .dp-eye:focus-visible { outline: 3px solid var(--tape, #F2C200); outline-offset: 2px; }
.dp-btn-sec { background: var(--surface, #fff); color: var(--ink, #1B232C); border-color: var(--line, #D8DDE3); }
.dp-link { align-self: center; min-height: 44px; padding: 8px 12px; border: 0; background: none; color: var(--ink, #1B232C); font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 7px; }
.dp-small { margin: 0; text-align: center; color: var(--muted, #47525E); font-size: 14px; }
.dp-foot { margin: 0; text-align: center; color: var(--muted, #47525E); font-size: 13.5px; padding: 0 8px; }
.dp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dp-loading { display: flex; align-items: center; gap: 12px; padding: 18px 0 6px; font-weight: 600; }
.dp-dots { display: inline-flex; gap: 5px; }
.dp-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted, #47525E); opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .dp-dots i { animation: dpdot 1.1s infinite; }
  .dp-dots i:nth-child(2) { animation-delay: .18s; } .dp-dots i:nth-child(3) { animation-delay: .36s; }
}
@keyframes dpdot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
