/* ==========================================================================
   FSB Neon Lamp Auth — ROUND 14 SCOPE 2 (2026-11-20), split in ROUND 17
   (2026-11-22): the lamp itself (stage, beam, glow, dots, bed-switch,
   spotlight) now lives in the SHARED css/neon-lamp.css +
   partials/neon-lamp.blade.php + js/neon-lamp.js, used by the auth
   pages AND the four public forms. THIS file keeps only auth-only
   styling: top bar, card, flip, face chrome, form fields, buttons.
   Accent variables (--neon / --neon-2 / --neon-rgb) are defined in
   neon-lamp.css. Animations only run when JS is present (html.js)
   and never under prefers-reduced-motion.
   ========================================================================== */

/* ---------- top bar: logo, colour dots, language ---------- */
.neon-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: .85rem 1rem;
}
@media (min-width: 1024px) {
  .neon-topbar { padding: 1.1rem 2rem; }
}
.neon-topbar-logo img { height: 2.25rem; width: auto; display: block; }
.neon-topbar-right {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-left: auto;
}
.neon-lang {
  font-size: .875rem;
  white-space: nowrap;
}
.neon-lang a { color: var(--neon-muted); text-decoration: none; padding: .4rem .1rem; }
.neon-lang a:hover { color: #fff; }
.neon-lang a.is-active { color: #fff; font-weight: 700; }
.neon-lang .sep { color: rgb(255 255 255 / .3); margin: 0 .15rem; }

/* ---------- card column ---------- */
.neon-card-col {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .neon-card-col { max-width: 32rem; margin: 0 auto; }
}
/* Compact lamp switch row above the card — reachable on mobile when
   the lamp artwork is hidden (ROUND 17 SCOPE 3). */
.neon-card-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: .75rem;
  position: relative;
  z-index: 2;
}
.neon-card {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(160deg, rgb(255 255 255 / .075), rgb(255 255 255 / .028));
  border: 1px solid var(--neon-card-border);
  box-shadow:
    0 30px 80px rgb(0 0 0 / .55),
    0 0 0 1px rgb(var(--neon-rgb) / .05),
    0 0 64px rgb(var(--neon-rgb) / .09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.6rem 1.4rem 1.4rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .neon-card { padding: 2rem 2rem 1.75rem; }
}
html.js .neon-card { animation: neonCardIn .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes neonCardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.neon-card::before { /* top accent hairline */
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: .9;
}
.neon-footer {
  text-align: center;
  font-size: .75rem;
  color: rgb(255 255 255 / .4);
  margin-top: 1.4rem;
  padding: 0 .5rem;
}

/* ---------- face chrome (logo / headings / tabs) ---------- */
.neon-face-inner { display: flex; flex-direction: column; }
.neon-logo { height: 2.6rem; width: auto; align-self: flex-start; }
.neon-eyebrow {
  margin-top: 1.15rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon);
}
.neon-title { margin-top: .3rem; font-size: 1.65rem; font-weight: 800; color: #fff; line-height: 1.2; }
.neon-sub { margin-top: .3rem; font-size: .875rem; color: var(--neon-muted); }
.neon-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  margin-top: 1.15rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--neon-rgb) / .55);
  background: rgb(var(--neon-rgb) / .12);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.neon-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.neon-tabs {
  display: flex;
  gap: 4px;
  margin-top: 1.25rem;
  padding: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .07);
}
.neon-tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--neon-muted);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.neon-tab:hover { color: #fff; }
.neon-tab.is-active {
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  color: #fff;
  box-shadow: 0 6px 18px rgb(var(--neon-rgb) / .45);
}

/* ---------- errors ---------- */
.neon-error {
  margin-top: 1rem;
  background: rgb(239 68 68 / .12);
  border: 1px solid rgb(239 68 68 / .35);
  color: #fca5a5;
  font-size: .83rem;
  line-height: 1.5;
  padding: .65rem .8rem;
  border-radius: 12px;
}
.neon-error p + p { margin-top: .15rem; }
@keyframes neonShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
html.js .neon-shake { animation: neonShake .45s ease; }

/* ---------- form fields ---------- */
.neon-form { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.neon-field { position: relative; }
.neon-field input {
  width: 100%;
  min-height: 52px;
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 12px;
  padding: 1.55rem .85rem .45rem;
  font-size: .95rem;
  color: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .25s ease, background .2s ease;
}
.neon-field input::placeholder { color: transparent; }
.neon-field input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 4px rgb(var(--neon-rgb) / .18);
  background: rgb(255 255 255 / .08);
}
.neon-field input.is-invalid { border-color: #ef4444; }
.neon-field label {
  position: absolute;
  left: .85rem;
  top: 1rem;
  font-size: .95rem;
  color: var(--neon-muted);
  pointer-events: none;
  transition: top .18s ease, font-size .18s ease, color .18s ease;
}
.neon-field input:focus + label,
.neon-field input:not(:placeholder-shown) + label {
  top: .5rem;
  font-size: .68rem;
  color: var(--neon);
}
.neon-field input.is-invalid + label { color: #f87171; }
.neon-field .neon-peek {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .6rem;
  border: 0;
  background: transparent;
  color: var(--neon-muted);
  font-size: .75rem;
  cursor: pointer;
  border-radius: 8px;
}
.neon-field .neon-peek:hover { color: #fff; }
.neon-field input.neon-has-peek { padding-right: 4.6rem; }

.neon-hint {
  font-size: .75rem;
  color: var(--neon-muted);
  margin-top: -.55rem;
}

.neon-check {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .875rem;
  color: var(--neon-muted);
  cursor: pointer;
  min-height: 44px;
}
.neon-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--neon);
  cursor: pointer;
  flex: none;
}

/* ---------- submit button ---------- */
.neon-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 12px 30px rgb(var(--neon-rgb) / .45);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.neon-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgb(var(--neon-rgb) / .55); }
.neon-btn:active { transform: scale(.98); }
.neon-btn:disabled { opacity: .7; cursor: default; transform: none; }
.neon-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgb(255 255 255 / .5), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.neon-btn:hover::after { left: 135%; }

.neon-switch {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .875rem;
  color: var(--neon-muted);
}
.neon-switch a {
  color: var(--neon);
  font-weight: 600;
  text-decoration: none;
  padding: .3rem .1rem;
}
.neon-switch a:hover { text-decoration: underline; }
.neon-backlink {
  margin-top: 1.1rem;
  text-align: center;
  font-size: .8rem;
  color: var(--neon-muted);
}
.neon-backlink a { color: var(--neon-muted); text-decoration: none; padding: .4rem .2rem; }
.neon-backlink a:hover { color: #fff; }
.neon-note {
  margin-top: 1rem;
  text-align: center;
  font-size: .75rem;
  line-height: 1.5;
  color: rgb(255 255 255 / .45);
}

/* ---------- 3D flip ---------- */
.neon-flip-scene { perspective: 1600px; }
.neon-flip-inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.3, .7, .3, 1), height .5s ease;
}
.neon-flip-inner.is-flipped { transform: rotateY(180deg); }
.neon-flip-face {
  grid-area: 1 / 1;
  min-width: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.neon-flip-face--back { transform: rotateY(180deg); }
.neon-flip-face[aria-hidden="true"] { pointer-events: none; }

/* ---------- reduced motion: everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  .neon-card, .neon-shake {
    animation: none !important;
  }
  .neon-flip-inner { transition: none; }
  .neon-btn::after { display: none; }
  .neon-btn, .neon-tab, .neon-field input, .neon-field label { transition: none; }
}
