/* Page de connexion — même style que REFID (écran partagé, panneau noir à halos orange, carte à filet orange). */
.lg { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 100vh; }

/* --- Panneau gauche --- */
.lg-l { position: relative; overflow: hidden; background: #000; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 40px; }
.lg-bg { position: absolute; inset: 0; pointer-events: none; }
.lg-bg .orb { position: absolute; border-radius: 50%; filter: blur(70px); animation: orbm 16s ease-in-out infinite alternate; }
.lg-bg .o1 { width: 460px; height: 460px; background: #ff7900; opacity: .34; left: -120px; top: -100px; }
.lg-bg .o2 { width: 360px; height: 360px; background: #4bb4e6; opacity: .16; right: -100px; bottom: 80px; animation-delay: -5s; }
.lg-bg .o3 { width: 260px; height: 260px; background: #a885d8; opacity: .16; left: 35%; bottom: -120px; animation-delay: -9s; }
.lg-bg .gl { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%); mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%); animation: gridm 12s linear infinite; }
@keyframes orbm { to { transform: translate(40px, 30px) scale(1.12); } }
@keyframes gridm { to { background-position: 44px 44px; } }

.lg-logo { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
.logo { width: 48px; height: 48px; background: var(--orange); position: relative; flex: none; display: block; }
.logo::after { content: "orange"; position: absolute; left: 4px; bottom: 4px; font: 700 11px/1 var(--font); color: #fff; letter-spacing: -.2px; }
.lg-logo b { display: block; font-size: 20px; letter-spacing: .04em; }
.lg-logo small { display: block; color: #bbb; font-size: 12px; }

.lg-hero { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lg-stage { position: relative; width: 340px; height: 340px; display: grid; place-items: center; margin: 24px 0 28px; }
.lg-stage .orbit { position: absolute; inset: 0; border: 1.5px dashed rgba(255,255,255,.22); border-radius: 50%; animation: rot 40s linear infinite; }
.lg-stage .oc { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.lg-stage .oc i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 3px; color: #000; animation: rot 40s linear infinite reverse; }
.lg-stage .oc svg { width: 24px; height: 24px; }
.lg-stage .oc:nth-child(1) { transform: rotate(0deg) translateX(170px) rotate(0deg); }
.lg-stage .oc:nth-child(2) { transform: rotate(72deg) translateX(170px) rotate(-72deg); }
.lg-stage .oc:nth-child(3) { transform: rotate(144deg) translateX(170px) rotate(-144deg); }
.lg-stage .oc:nth-child(4) { transform: rotate(216deg) translateX(170px) rotate(-216deg); }
.lg-stage .oc:nth-child(5) { transform: rotate(288deg) translateX(170px) rotate(-288deg); }
.lg-stage .oc:nth-child(1) i { background: var(--orange); box-shadow: 0 0 22px rgba(255,121,0,.55); }
.lg-stage .oc:nth-child(2) i { background: #4bb4e6; box-shadow: 0 0 22px rgba(75,180,230,.5); }
.lg-stage .oc:nth-child(3) i { background: #50be87; box-shadow: 0 0 22px rgba(80,190,135,.5); }
.lg-stage .oc:nth-child(4) i { background: #ffd200; box-shadow: 0 0 22px rgba(255,210,0,.45); }
.lg-stage .oc:nth-child(5) i { background: #a885d8; box-shadow: 0 0 22px rgba(168,133,216,.5); }
@keyframes rot { to { transform: rotate(360deg); } }
/* Les tuiles gardent leur position (transform fixe) : seul l'anneau tourne via .orbit ; on neutralise la contre-rotation de position. */
.lg-stage .orbit .oc { animation: none; }

.mon { width: 230px; background: #fff; color: #000; border: 6px solid #1c1c1c; border-radius: 4px; overflow: hidden; text-align: left; box-shadow: 0 10px 40px rgba(0,0,0,.5); z-index: 1; }
.mon .bar { background: var(--orange); font: 700 11px/1 var(--font); padding: 6px 8px; }
.mon ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; }
.mon li { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.mon li::before { content: ''; width: 12px; height: 12px; border-radius: 2px; background: #1f9d55; flex: none; }
.mon li.run::before { background: var(--orange); animation: blink 1.2s infinite; }
.mon .res { margin: 0 8px 8px; font: 700 11px/1 var(--font); color: #0b6b3c; background: #e8f6ee; padding: 5px 8px; border-radius: 2px; display: inline-block; }
@keyframes blink { 50% { opacity: .3; } }

.lg-hero h3 { margin: 0 0 8px; font-size: 24px; max-width: 420px; }
.lg-hero h3 em { font-style: normal; color: var(--orange); }
.lg-hero p { margin: 0; color: #bbb; max-width: 420px; line-height: 1.5; }
.lg-foot { position: relative; z-index: 2; color: #8a8a8a; font-size: 12px; text-align: center; padding-top: 16px; }

/* --- Panneau droit --- */
.lg-r { display: flex; flex-direction: column; padding: 24px 32px; background: var(--bg); }
.lg-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #0b6b3c; background: var(--ok-bg); padding: 5px 12px; border-radius: 3px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.live.down { color: var(--bad); background: var(--bad-bg); } .live.down i { background: var(--bad); }
.live.wait { color: var(--muted); background: var(--card); } .live.wait i { background: var(--neutral); }
@media (prefers-color-scheme: dark) { .live { color: #6fe0a0; } }

.lg-card { width: 100%; max-width: 420px; margin: auto; background: var(--card); border-top: 5px solid var(--orange); border-radius: 3px; padding: 28px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.10); display: flex; flex-direction: column; gap: 18px; }
.lg-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: #000; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 2px; }
.lg-badge svg { width: 14px; height: 14px; color: var(--orange); }
.lg-card h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.15; }
.lg-sub { margin: 0; color: var(--muted); line-height: 1.5; }
.lg-f label { display: block; font-weight: 700; margin-bottom: 8px; }
.lg-inp { position: relative; display: flex; align-items: center; }
.lg-inp .li { position: absolute; left: 12px; color: var(--muted); pointer-events: none; display: grid; }
.lg-inp .li svg, .lg-inp .eye svg { width: 20px; height: 20px; }
.lg-inp input { width: 100%; height: 44px; border: 1px solid #8f8f8f; border-radius: 3px; padding: 0 46px 0 42px; font: inherit; background: var(--card); color: var(--fg); }
.lg-inp input::placeholder { color: #767676; }
.lg-inp input:hover { border-color: var(--fg); }
.lg-inp input:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px var(--orange); }
.lg-inp .eye { position: absolute; right: 6px; background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 8px; display: grid; border-radius: 3px; }
.lg-inp .eye:hover, .lg-inp .eye[aria-pressed=true] { color: var(--fg); }
.lg-inp.err input { border-color: var(--bad); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.lg-help { font-size: 14px; color: var(--muted); margin: -6px 0 0; }
.lg-go { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; width: 100%; background: var(--orange); color: #000; border: 0; border-radius: 3px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s, box-shadow .15s; }
.lg-go:hover { background: var(--orange-hover); box-shadow: 0 6px 16px rgba(255,121,0,.35); }
.lg-go svg { width: 20px; height: 20px; transition: transform .25s; }
.lg-go:hover svg { transform: translateX(5px); }
.lg-go[disabled] { cursor: progress; opacity: .85; }
.lg-go .sp { display: none; width: 18px; height: 18px; border: 3px solid rgba(0,0,0,.25); border-top-color: #000; border-radius: 50%; animation: rot .7s linear infinite; }
.lg-go.load .sp { display: block; } .lg-go.load svg { display: none; }
.lg-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.lg-note svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

@media (max-width: 900px) {
  .lg { grid-template-columns: 1fr; min-height: 100vh; }
  .lg-l { padding: 24px 20px 20px; gap: 16px; }
  .lg-stage { display: none; }
  .lg-hero { align-items: flex-start; text-align: left; }
  .lg-hero h3 { font-size: 20px; }
  .lg-foot { display: none; }
  .lg-r { padding: 16px; }
  .lg-card { margin: 16px auto; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-bg .orb, .lg-bg .gl, .lg-stage .orbit, .lg-stage .oc i, .mon li.run::before, .lg-inp.err input, .lg-go .sp { animation: none !important; }
}
