@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Login — cinematic portal ─────────────────────────────────── */

body.lp-page {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  color: #0f172a;
  overflow-x: hidden;
}

.lp-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow: hidden;
}

/* ── Full-screen background ──────────────────────────────────── */
.lp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0c1929;
}

.lp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 3.2s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: opacity;
  pointer-events: none;
}

.lp-slide.is-visible {
  opacity: 1;
  z-index: 1;
}

.lp-slide.is-top {
  z-index: 2;
}

.lp-slide-inner {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  transform: scale(1) translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lp-slide.is-visible .lp-slide-inner {
  animation: lpKenBurns 22s linear forwards;
}

@keyframes lpKenBurns {
  0%   { transform: scale(1) translateZ(0); }
  100% { transform: scale(1.06) translateZ(0); }
}

.lp-slide-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(12, 25, 41, .92) 0%,
      rgba(27, 58, 92, .78) 38%,
      rgba(8, 145, 178, .35) 100%);
}

.lp-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 85%, rgba(8, 145, 178, .28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 88% 12%, rgba(232, 168, 32, .18) 0%, transparent 55%);
  pointer-events: none;
}

.lp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .55;
}

.lp-orb--1 {
  width: 420px;
  height: 420px;
  background: #0891b2;
  top: -8%;
  right: 18%;
  animation: lpFloat1 22s ease-in-out infinite;
}

.lp-orb--2 {
  width: 320px;
  height: 320px;
  background: #e8a820;
  bottom: 5%;
  left: 8%;
  animation: lpFloat2 18s ease-in-out infinite;
}

.lp-orb--3 {
  width: 260px;
  height: 260px;
  background: #1b3a5c;
  top: 40%;
  left: 42%;
  animation: lpFloat3 26s ease-in-out infinite;
}

@keyframes lpFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-30px, 40px); }
}

@keyframes lpFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, -25px); }
}

@keyframes lpFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-20px, 30px); }
}

.lp-noise {
  position: absolute;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Main layout ─────────────────────────────────────────────── */
.lp-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  animation: lpFadeUp .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero (left) ─────────────────────────────────────────────── */
.lp-hero {
  color: #fff;
  padding-right: 16px;
}

.lp-hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.lp-hero-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .3));
}

.lp-hero-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.lp-hero-brand-text strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.15;
}

.lp-hero-brand-text span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, .62);
}

.lp-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0 0 20px;
}

.lp-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #67e8f9 0%, #e8a820 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .68);
  max-width: 440px;
  margin: 0 0 36px;
}

.lp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
}

.lp-hero-pill svg {
  width: 16px;
  height: 16px;
  opacity: .75;
  flex-shrink: 0;
}

.lp-hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 48px;
}

.lp-hero-dots span {
  display: block;
  height: 4px;
  width: 24px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: width .35s cubic-bezier(.4, 0, .2, 1), background .25s;
}

.lp-hero-dots span.active {
  width: 40px;
  background: linear-gradient(90deg, #0891b2, #67e8f9);
}

/* ── Sign-in card ────────────────────────────────────────────── */
.lp-panel {
  position: relative;
}

.lp-panel-glow {
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(8, 145, 178, .5), rgba(232, 168, 32, .25), rgba(8, 145, 178, .15));
  filter: blur(1px);
  z-index: 0;
}

.lp-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .5) inset,
    0 24px 64px rgba(0, 0, 0, .28),
    0 8px 24px rgba(27, 58, 92, .12);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.lp-card-body {
  padding: 36px 32px 28px;
}

.lp-mobile-logo {
  display: none;
  width: 88px;
  margin: 0 auto 16px;
}

.lp-card-head {
  margin-bottom: 28px;
}

.lp-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--teal, #0891b2);
  margin: 0 0 8px;
}

.lp-card-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.2;
}

.lp-card-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* ── Banners ─────────────────────────────────────────────────── */
.lp-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 22px;
  animation: lpFadeUp .4s ease both;
}

.lp-banner-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.lp-banner--error {
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.lp-banner--info {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ── Floating-label inputs ───────────────────────────────────── */
.lp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-input {
  position: relative;
}

.lp-input input {
  width: 100%;
  height: 54px;
  padding: 22px 14px 8px 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
}

.lp-input input::placeholder {
  color: transparent;
}

.lp-input label {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  pointer-events: none;
  transition: top .2s, font-size .2s, color .2s, transform .2s;
}

.lp-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #94a3b8;
  transition: color .2s;
  pointer-events: none;
}

.lp-input-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.lp-input input:focus,
.lp-input input:not(:placeholder-shown) {
  background: #fff;
  border-color: var(--teal, #0891b2);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, .12);
}

.lp-input input:focus + label,
.lp-input input:not(:placeholder-shown) + label {
  top: 12px;
  transform: translateY(0);
  font-size: 11px;
  font-weight: 600;
  color: var(--teal, #0891b2);
  letter-spacing: .3px;
}

.lp-input input:focus ~ .lp-input-icon {
  color: var(--teal, #0891b2);
}

.lp-input--pwd input {
  padding-right: 48px;
}

.lp-pwd-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s, color .15s;
}

.lp-pwd-toggle:hover {
  background: #f1f5f9;
  color: #475569;
}

.lp-pwd-toggle svg {
  width: 20px;
  height: 20px;
}

.lp-pwd-toggle .lp-icon-eye-off { display: none; }
.lp-pwd-toggle.is-visible .lp-icon-eye { display: none; }
.lp-pwd-toggle.is-visible .lp-icon-eye-off { display: block; }

/* ── Submit button ───────────────────────────────────────────── */
.lp-submit {
  position: relative;
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, #1b3a5c 0%, #0891b2 100%);
  box-shadow:
    0 4px 16px rgba(8, 145, 178, .35),
    0 1px 3px rgba(0, 0, 0, .12);
  transition: transform .15s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lp-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .55s ease;
}

.lp-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(8, 145, 178, .45),
    0 2px 6px rgba(0, 0, 0, .15);
}

.lp-submit:hover:not(:disabled)::before {
  transform: translateX(100%);
}

.lp-submit:active:not(:disabled) {
  transform: translateY(0);
}

.lp-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

.lp-submit svg {
  width: 18px;
  height: 18px;
  transition: transform .2s;
}

.lp-submit:hover:not(:disabled) svg {
  transform: translateX(3px);
}

/* ── Footer ──────────────────────────────────────────────────── */
.lp-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-content {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 0;
  }

  .lp-hero {
    display: none;
  }

  .lp-scene {
    padding: 20px 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    align-items: flex-start;
    padding-top: max(20px, env(safe-area-inset-top));
  }

  .lp-mobile-logo {
    display: block;
  }

  .lp-card-head {
    text-align: center;
    margin-bottom: 24px;
  }

  .lp-card-eyebrow {
    display: none;
  }

  .lp-card-body {
    padding: 28px 24px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-slide {
    transition: opacity .4s ease;
  }

  .lp-slide.is-visible .lp-slide-inner,
  .lp-content,
  .lp-orb {
    animation: none !important;
  }

  .lp-submit::before {
    display: none;
  }
}
