/* =========================================================================
   ATHLIA — COUCHE SESSION 3.27 (styles)
   Écran de reconnexion, bandeau hors-ligne, formulaire de connexion en place.
   ========================================================================= */

:root {
  --lsc-sess-ink: #eaf6ff;
  --lsc-sess-muted: #8ba7bd;
  --lsc-sess-accent: #5ce0ff;
  --lsc-sess-accent-2: #7c5cff;
  --lsc-sess-danger: #ff7a8a;
  --lsc-sess-panel: #0b141d;
}

/* -------------------------------------------------------------------------
   Bandeau hors-ligne
   ------------------------------------------------------------------------- */
.lsc-offline-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 2147482500;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border: 1px solid rgba(255, 190, 90, .34);
  border-radius: 18px;
  background: linear-gradient(135deg, #23180a, #14100a);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  color: #ffdca8;
  font: 600 13px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.22, 1.2, .4, 1), opacity .24s ease;
}
.lsc-offline-banner.is-visible { transform: translate(-50%, 0); opacity: 1; }
.lsc-offline-banner i {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 190, 90, .16);
  font-style: normal;
  font-size: 15px;
}
.lsc-offline-banner span { display: grid; gap: 2px; }
.lsc-offline-banner strong { color: #fff2d8; font-size: 13px; }
.lsc-offline-banner span { color: #d9b981; font-weight: 500; font-size: 12px; }

/* -------------------------------------------------------------------------
   Écran de reconnexion
   ------------------------------------------------------------------------- */
body.lsc-reconnect-open { overflow: hidden; }

.lsc-reconnect-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .26s ease;
}
.lsc-reconnect-overlay[hidden] { display: none; }
.lsc-reconnect-overlay.is-open { opacity: 1; }

.lsc-reconnect-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(20, 40, 60, .82), rgba(3, 6, 10, .94));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.lsc-reconnect-card {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 30px 28px 26px;
  border: 1px solid rgba(92, 224, 255, .24);
  border-radius: 28px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(92, 224, 255, .13), transparent 70%),
    linear-gradient(180deg, #0d1a25, var(--lsc-sess-panel));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: center;
  transform: translateY(16px) scale(.97);
  transition: transform .34s cubic-bezier(.22, 1.2, .4, 1);
}
.lsc-reconnect-overlay.is-open .lsc-reconnect-card { transform: none; }

/* Mascotte : rassure au lieu d'alerter. */
.lsc-reconnect-mascot { line-height: 0; animation: lscMascotFloat 3.4s ease-in-out infinite; }
.lsc-reconnect-halo { fill: none; stroke: rgba(92, 224, 255, .3); stroke-width: 2; stroke-dasharray: 10 12; animation: lscMascotSpin 14s linear infinite; transform-origin: 60px 60px; }
.lsc-reconnect-head { fill: #9be7ff; }
.lsc-reconnect-body { fill: #5ce0ff; }
.lsc-reconnect-eye { fill: #06121b; }
.lsc-reconnect-smile { fill: none; stroke: #06121b; stroke-width: 2.4; stroke-linecap: round; }

@keyframes lscMascotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes lscMascotSpin { to { transform: rotate(360deg); } }

.lsc-reconnect-eyebrow {
  color: var(--lsc-sess-accent);
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: .26em;
}
.lsc-reconnect-card h2 {
  margin: 0;
  color: var(--lsc-sess-ink);
  font: 800 24px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.lsc-reconnect-copy {
  margin: 0;
  max-width: 34ch;
  color: var(--lsc-sess-muted);
  font: 500 14px/1.5 system-ui, sans-serif;
}

/* -------------------------------------------------------------------------
   Formulaire (partagé avec l'écran d'accès refusé)
   ------------------------------------------------------------------------- */
.lsc-reconnect-form,
.lsc-inline-login {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  text-align: left;
}
.lsc-inline-login { max-width: 380px; margin: 18px auto 4px; }

.lsc-reconnect-form label,
.lsc-inline-login label { display: grid; gap: 5px; }
.lsc-reconnect-form label span,
.lsc-inline-login label span {
  color: var(--lsc-sess-muted);
  font: 700 11px/1 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lsc-reconnect-form input,
.lsc-inline-login input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(140, 180, 210, .22);
  border-radius: 14px;
  background: rgba(3, 10, 16, .72);
  color: var(--lsc-sess-ink);
  font: 500 15px/1.2 system-ui, sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lsc-reconnect-form input:focus,
.lsc-inline-login input:focus {
  outline: none;
  border-color: rgba(92, 224, 255, .62);
  box-shadow: 0 0 0 4px rgba(92, 224, 255, .14);
}
.lsc-reconnect-form input::placeholder,
.lsc-inline-login input::placeholder { color: rgba(139, 167, 189, .5); }

.lsc-reconnect-form button[type="submit"],
.lsc-inline-login button[type="submit"] {
  margin-top: 4px;
  padding: 14px 18px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--lsc-sess-accent), var(--lsc-sess-accent-2));
  color: #04101a;
  font: 800 15px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: transform .16s cubic-bezier(.22, 1.2, .4, 1), box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 12px 30px rgba(92, 224, 255, .24);
}
.lsc-reconnect-form button[type="submit"]:hover:not(:disabled),
.lsc-inline-login button[type="submit"]:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.lsc-reconnect-form button[type="submit"]:active:not(:disabled),
.lsc-inline-login button[type="submit"]:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.lsc-reconnect-form button[type="submit"]:disabled,
.lsc-inline-login button[type="submit"]:disabled { opacity: .6; cursor: progress; }

.lsc-inline-login-error {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(255, 122, 138, .32);
  border-radius: 12px;
  background: rgba(255, 122, 138, .1);
  color: var(--lsc-sess-danger);
  font: 600 13px/1.4 system-ui, sans-serif;
}
.lsc-inline-login-error[hidden] { display: none; }

.lsc-reconnect-links {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.lsc-reconnect-links a,
.lsc-reconnect-links button {
  border: 0;
  background: none;
  padding: 4px;
  color: var(--lsc-sess-muted);
  font: 600 13px/1 system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
}
.lsc-reconnect-links a:hover,
.lsc-reconnect-links button:hover { color: var(--lsc-sess-accent); }

.lsc-reconnect-note {
  color: rgba(139, 167, 189, .68);
  font: 500 11.5px/1.45 system-ui, sans-serif;
  max-width: 36ch;
}

@media (prefers-reduced-motion: reduce) {
  .lsc-reconnect-mascot,
  .lsc-reconnect-halo { animation: none; }
  .lsc-reconnect-overlay,
  .lsc-reconnect-card,
  .lsc-offline-banner { transition: none; }
}

@media (max-width: 480px) {
  .lsc-reconnect-card { padding: 26px 20px 22px; border-radius: 24px; }
  .lsc-reconnect-card h2 { font-size: 21px; }
}
