/* BeOoh — Espace client : page de connexion */
.login-page { min-height: 100vh; overflow-x: hidden; }
.login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }

/* ---------- Visual ---------- */
.login__visual { position: relative; overflow: hidden; background: #020306; border-right: 1px solid var(--line); }
#led-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.login__visual-fade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,3,6,.6) 0%, rgba(2,3,6,0) 14%, rgba(2,3,6,0) 50%, rgba(2,3,6,.9) 86%), radial-gradient(120% 80% at 50% 45%, transparent 50%, rgba(2,3,6,.6)); }
.login__visual-top { position: absolute; top: 36px; left: 44px; right: 44px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.login__visual-top .chip { background: rgba(5,6,10,.6); backdrop-filter: blur(10px); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s infinite; }
.login__visual-bottom { position: absolute; left: 44px; right: 44px; bottom: 44px; z-index: 2; }
.login__title { font-size: clamp(36px, 4.2vw, 62px); letter-spacing: -.045em; line-height: .98; margin: 18px 0 18px; }
.login__lead { color: var(--muted); max-width: 52ch; font-size: 16px; }
.login__stats { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.login__stats div { padding: 12px 18px; border-radius: 14px; background: rgba(17,20,29,.55); border: 1px solid var(--line); backdrop-filter: blur(12px); display: flex; flex-direction: column; }
.login__stats b { font-size: 18px; color: var(--text); }
.login__stats span { font-size: 12px; color: var(--dim); }

/* ---------- Panel ---------- */
.login__panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 32px 40px;
  background: radial-gradient(600px 400px at 70% 10%, rgba(123,92,255,.14), transparent 70%), radial-gradient(500px 400px at 20% 100%, rgba(0,229,255,.08), transparent 70%), var(--bg); }
.login__back { position: absolute; top: 32px; right: 36px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); transition: color .3s, border-color .3s; }
.login__back:hover { color: var(--text); border-color: var(--line-2); }
.login__card { position: relative; width: 100%; max-width: 440px; padding: 40px 36px; border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); animation: cardIn .9s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.login__card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(0,229,255,.5), transparent 35%, transparent 65%, rgba(255,45,155,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.login__card-glow { position: absolute; width: 260px; height: 260px; top: -140px; right: -80px; border-radius: 50%; background: var(--violet); filter: blur(90px); opacity: .35; pointer-events: none; }
.login__mobile-logo { display: none; font-size: 30px; margin-bottom: 20px; }
.login__h { font-size: 30px; position: relative; }
.login__sub { margin: 8px 0 22px; font-size: 15px; position: relative; }
.login__demo { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: var(--muted); margin-bottom: 22px;
  background: rgba(0,229,255,.06); border: 1px solid rgba(0,229,255,.22); position: relative; }
.login__demo svg { color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.login__demo b { color: var(--text); }
#login-form { display: flex; flex-direction: column; gap: 18px; position: relative; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dim); pointer-events: none; transition: color .3s; }
.input-wrap .input { padding-left: 46px; }
.input-wrap:focus-within > svg { color: var(--cyan); }
.input-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--dim); }
.input-eye:hover { color: var(--text); background: rgba(255,255,255,.05); }
.input-eye svg { width: 18px; height: 18px; }
.login__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.login__link { color: var(--cyan); font-size: 14px; transition: opacity .3s; }
.login__link:hover { opacity: .75; }
.login__submit { width: 100%; justify-content: center; padding: 17px 28px; margin-top: 4px; }
.login__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-loading .login__submit { color: #fff; box-shadow: var(--glow-magenta); pointer-events: none; }
.is-loading .login__submit::before { opacity: 1; }
.is-loading .login__submit .arrow { display: none; }
.is-loading .login__spinner { display: block; }
.login__progress { height: 0; overflow: hidden; opacity: 0; transition: height .5s var(--ease), opacity .4s; }
.is-loading .login__progress { height: 34px; opacity: 1; }
.login__progress-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.login__progress-bar span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px var(--cyan); transition: width .5s var(--ease); }
.login__progress-text { margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.login__foot { margin-top: 26px; text-align: center; font-size: 14px; position: relative; }
.login__legal { margin-top: 28px; font-size: 12px; color: var(--dim); }
.login__legal a:hover { color: var(--text); }
.field.has-error .input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,77,94,.12); }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Exit overlay */
.login-exit { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; background: var(--bg); clip-path: circle(0% at 75% 60%); transition: clip-path .9s cubic-bezier(.7,0,.2,1); pointer-events: none; }
.login-exit.is-on { clip-path: circle(150% at 75% 60%); }

@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .login__visual { position: fixed; inset: 0; opacity: .45; border: 0; }
  .login__visual-top, .login__visual-bottom { display: none; }
  .login__panel { background: transparent; min-height: 100vh; }
  .login__mobile-logo { display: inline-flex; }
}
@media (max-width: 520px) {
  .login__panel { padding: 80px 16px 28px; }
  .login__card { padding: 30px 22px; border-radius: 22px; }
  .login__back { right: 16px; top: 20px; }
}
