
:root { --font: "Jura", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; }

body { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 40px 16px; }

.fond { position: fixed; inset: 0; z-index: -1; background: #050506 url("../media/fond-connexion.jpg") 70% 50% / cover no-repeat; }
.fond-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.fond-voile { position: absolute; inset: 0; background: rgba(9, 10, 12, .52); }
:root[data-debit="lent"] .fond { background-image: none; }

.box { display: grid; gap: 22px; width: min(380px, 100%); animation: apparait .7s .1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } }
.logo { justify-self: center; margin: 0 -.12em 6px 0; color: var(--text); font: 600 54px/1 "Jura", var(--font); letter-spacing: .12em; }
form { display: grid; gap: 16px; }
form.busy { opacity: .7; }
input[type=text], input[type=password] { height: 46px; padding: 0 14px; border-radius: 10px; background-color: rgba(11, 12, 14, .82); font-size: 15px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 96px; }
.pw .eye { position: absolute; top: 6px; right: 6px; height: 34px; padding: 0 12px; border-radius: 7px; }
button.primary { height: 46px; margin-top: 6px; border-radius: 10px; font-size: 15px; }
.msg { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(24, 25, 29, .9); color: var(--text); font-size: 14px; }
.msg::before { content: ''; width: 8px; height: 8px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--text3); }
.msg.ok::before { background: var(--ok); }
.msg.warn::before { background: var(--warn); }
.msg.bad::before { background: var(--danger); }
.foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text3); font-size: 14px; }
.foot svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.stinger { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; object-fit: cover; pointer-events: none; }
.stinger[hidden] { display: none; }

@media (max-width: 860px) {
  .fond-video { display: none; }
}
@media (max-width: 480px) {
  body { align-items: start; padding-top: 56px; }
  .logo { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .box { animation: none; }
}
