/* ── LinkPanel gate — page de connexion unique ─────────────────────────────
   Direction : accès ops / cockpit amber (même identité que le panel).
   Signature : marque LinkPanel en héros + treillis de chaînes en fond.
   Pas de sélecteur de thème (un seul look).
─────────────────────────────────────────────────────────────────────────── */

.lp-gate {
  --lg-ink: #06080e;
  --lg-panel: rgba(14, 18, 28, .88);
  --lg-line: rgba(255, 255, 255, .1);
  --lg-amber: #f5a524;
  --lg-amber-2: #ffc368;
  --lg-chalk: #eef1f7;
  --lg-mist: #8a93a8;
  --lg-danger: #f4506b;
  --lg-ok: #46d68a;
  --lg-display: "Syne", "Space Grotesk", system-ui, sans-serif;
  --lg-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --lg-body: "Space Grotesk", system-ui, sans-serif;

  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: var(--lg-chalk);
  background: var(--lg-ink);
  overflow: hidden;
}

.lp-gate-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(245, 165, 36, .14), transparent 58%),
    radial-gradient(720px 480px at 88% 82%, rgba(56, 189, 248, .08), transparent 55%),
    linear-gradient(165deg, #05070c 0%, #0a0d16 48%, #070910 100%);
}

.lp-gate-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: .55;
  animation: lp-gate-drift 18s ease-in-out infinite alternate;
}
.lp-gate-orb--a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  left: -8%;
  top: -12%;
  background: rgba(245, 165, 36, .22);
}
.lp-gate-orb--b {
  width: 36vw;
  height: 36vw;
  max-width: 440px;
  max-height: 440px;
  right: -10%;
  bottom: -16%;
  background: rgba(56, 189, 248, .12);
  animation-delay: -6s;
}

.lp-gate-lattice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(245, 165, 36, .09);
  opacity: .7;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
}

.lp-gate-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px);
}

.lp-gate-brand {
  animation: lp-gate-rise .55s cubic-bezier(.22, .8, .3, 1) both;
}

.lp-gate-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 18px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.lp-gate-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--lg-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lg-amber);
}
.lp-gate-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lg-amber), transparent);
}

.lp-gate-title {
  margin: 0;
  font-family: var(--lg-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: .92;
  letter-spacing: -.04em;
  color: var(--lg-chalk);
  text-shadow: 0 0 60px rgba(245, 165, 36, .18);
}

.lp-gate-lead {
  margin: 22px 0 0;
  max-width: 28ch;
  font-family: var(--lg-body);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--lg-mist);
}

.lp-gate-panel {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--lg-line);
  background:
    linear-gradient(165deg, rgba(22, 27, 40, .92), rgba(12, 15, 24, .94));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .04) inset,
    0 28px 70px rgba(0, 0, 0, .45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: lp-gate-rise .65s cubic-bezier(.22, .8, .3, 1) .08s both;
}

.lp-gate-panel::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--lg-amber), var(--lg-amber-2), transparent);
  opacity: .85;
  box-shadow: 0 0 18px rgba(245, 165, 36, .35);
}

.lp-gate-alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.35;
  border: 1px solid transparent;
}
.lp-gate-alert--danger,
.lp-gate-alert--error {
  color: #ffd0d8;
  background: rgba(244, 80, 107, .12);
  border-color: rgba(244, 80, 107, .28);
}
.lp-gate-alert--success {
  color: #c8f5dc;
  background: rgba(70, 214, 138, .12);
  border-color: rgba(70, 214, 138, .28);
}
.lp-gate-alert--warning {
  color: #ffe6b8;
  background: rgba(245, 165, 36, .12);
  border-color: rgba(245, 165, 36, .28);
}

.lp-gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-gate-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lp-gate-field label {
  font-family: var(--lg-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lg-mist);
}
.lp-gate-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--lg-line);
  background: rgba(6, 8, 14, .55);
  color: var(--lg-chalk);
  font-family: var(--lg-body);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.lp-gate-field input::placeholder {
  color: rgba(138, 147, 168, .65);
}
.lp-gate-field input:hover {
  border-color: rgba(255, 255, 255, .16);
}
.lp-gate-field input:focus {
  border-color: rgba(245, 165, 36, .7);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, .14);
  background: rgba(6, 8, 14, .72);
}

.lp-gate-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 4px;
  font-size: .92rem;
  color: var(--lg-mist);
  cursor: pointer;
  user-select: none;
}
.lp-gate-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--lg-amber);
  cursor: pointer;
}

.lp-gate-submit {
  margin-top: 4px;
  height: 50px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--lg-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #10121a;
  background: linear-gradient(135deg, var(--lg-amber-2), var(--lg-amber) 55%, #e09212);
  box-shadow:
    0 0 0 1px rgba(255, 195, 104, .25) inset,
    0 12px 36px rgba(245, 165, 36, .28);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.lp-gate-submit:hover {
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 195, 104, .3) inset,
    0 16px 40px rgba(245, 165, 36, .36);
}
.lp-gate-submit:active {
  transform: translateY(1px);
}
.lp-gate-submit:focus-visible {
  outline: 2px solid var(--lg-amber-2);
  outline-offset: 3px;
}

@keyframes lp-gate-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lp-gate-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(18px, 14px) scale(1.06); }
}

@media (max-width: 860px) {
  .lp-gate-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: clamp(24px, 5vh, 40px);
    padding-bottom: 28px;
    align-content: center;
  }
  .lp-gate-title {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }
  .lp-gate-lead {
    margin-top: 14px;
    max-width: 36ch;
    font-size: .98rem;
  }
  .lp-gate-kicker {
    margin-bottom: 12px;
  }
  .lp-gate-lattice {
    mask-image: radial-gradient(ellipse 90% 50% at 50% 0%, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 0%, #000 10%, transparent 70%);
  }
}

@media (max-width: 480px) {
  .lp-gate-panel {
    padding: 18px 16px 20px;
    border-radius: 16px;
  }
  .lp-gate-field input,
  .lp-gate-submit {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-gate-brand,
  .lp-gate-panel,
  .lp-gate-orb {
    animation: none !important;
  }
}
