/* ===================== Enterprise Login ===================== */
.login-body { background: #eef1f8; overflow-x: hidden; }
.login { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(460px, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ---------- Cover ---------- */
.login-cover { position: relative; overflow: hidden; color: #fff; background: #0f172a; isolation: isolate; }
.lc-slides { position: absolute; inset: 0; z-index: -3; }
.lc-slide { position: absolute; inset: -3%; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 8s linear; }
.lc-slide.active { opacity: 1; transform: scale(1); }
.lc-overlay { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--brand) 88%, #0f172a) 0%, color-mix(in srgb, var(--brand) 55%, transparent) 42%, color-mix(in srgb, var(--brand-2) 30%, transparent) 70%, rgba(15, 23, 42, .35) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, .65) 0%, transparent 45%);
}
.lc-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lc-orbs i { position: absolute; border-radius: 50%; filter: blur(2px); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, .03) 60%); border: 1px solid rgba(255, 255, 255, .18); animation: float 9s ease-in-out infinite; }
.lc-orbs i:nth-child(1) { width: 180px; height: 180px; right: 12%; top: 14%; }
.lc-orbs i:nth-child(2) { width: 90px; height: 90px; right: 34%; top: 58%; animation-delay: -3s; animation-duration: 11s; }
.lc-orbs i:nth-child(3) { width: 260px; height: 260px; left: -70px; bottom: -80px; animation-delay: -5s; animation-duration: 13s; }
.lc-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 56px; gap: 30px; }
.lc-brand { display: flex; align-items: center; gap: 14px; }
.lc-brand img { width: 58px; height: 58px; border-radius: 18px; background: #fff; padding: 5px; object-fit: contain; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.lc-brand b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.lc-brand span { font-size: 13.5px; opacity: .85; }
.lc-hero { max-width: 640px; animation: fade-up .9s var(--ease) both .1s; }
.lc-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.lc-kicker i { color: #fde68a; }
.lc-hero h1 { color: #fff; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.18; font-weight: 700; letter-spacing: -.025em; margin: 22px 0 14px; text-wrap: balance; }
.lc-hero p { font-size: 17px; opacity: .9; max-width: 540px; line-height: 1.65; }
.lc-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lc-features span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.lc-features i { font-size: 18px; }
.lc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 12px; margin-top: 30px; }
.lc-stats > div { padding: 16px 16px 14px; border-radius: 20px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45); }
.lc-stats i { font-size: 24px; opacity: .95; }
.lc-stats b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 8px; }
.lc-stats span { font-size: 12.5px; opacity: .85; }
.lc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lc-announce { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(15, 23, 42, .35); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(10px); font-size: 13.5px; }
.lc-announce i { color: #fcd34d; font-size: 18px; flex-shrink: 0; }
.lc-marquee { overflow: hidden; white-space: nowrap; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lc-marquee span { display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.lc-dots { display: flex; gap: 8px; }
.lc-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .45); transition: .35s var(--ease); padding: 0; }
.lc-dots button.active { width: 30px; background: #fff; }

/* ---------- Panel ---------- */
.login-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 40px; background: radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(236, 72, 153, .07), transparent 60%), #f7f8fc; }
.login-panel::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.lp-top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.lp-help { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.lp-card { position: relative; width: 100%; max-width: 440px; margin: 20px auto; animation: fade-up .7s var(--ease) both .15s; }
.lp-logo { width: 84px; height: 84px; border-radius: 26px; background: #fff; padding: 8px; box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--brand) 70%, transparent), 0 0 0 1px var(--line); margin-bottom: 20px; position: relative; }
.lp-logo::after { content: ''; position: absolute; inset: -6px; border-radius: 30px; border: 2px dashed color-mix(in srgb, var(--brand) 30%, transparent); animation: spin 30s linear infinite; }
.lp-logo img { width: 100%; height: 100%; object-fit: contain; }
.lp-card h2 { font-size: 30px; font-weight: 750; letter-spacing: -.025em; }
.lp-sub { color: var(--muted); margin: 6px 0 22px; font-size: 15px; }
.lp-portal { width: 100%; margin-bottom: 18px; }
.lp-portal button { flex: 1; justify-content: center; }
.lp-form { display: flex; flex-direction: column; gap: 16px; }
.lp-input .input { height: 52px; border-radius: 15px; font-size: 15.5px; background: #fff; }
.lp-input > i:first-child { font-size: 20px; }
.lp-input .input-addon { right: 8px; }
.lp-submit { height: 54px; border-radius: 16px; font-size: 16px; margin-top: 4px; }
.lp-submit i { transition: transform .25s var(--ease); }
.lp-submit:hover i { transform: translateX(4px); }
.lp-error { margin-bottom: 16px; }
.lp-error.shake { animation: shake .5s var(--ease); }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.lp-caps { color: var(--amber-ink); }
.lp-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lp-divider::before, .lp-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.lp-divider span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lp-demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-demo-btn { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-align: left; transition: .2s var(--ease); min-width: 0; line-height: 1.25; }
.lp-demo-btn span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); font-size: 16px; flex-shrink: 0; }
.lp-demo-btn:hover { border-color: var(--tone); transform: translateY(-2px); box-shadow: 0 10px 18px -12px var(--tone); }
.lp-demo-btn.picked { background: var(--tone); color: #fff; }
.lp-demo-btn.picked span { background: rgba(255, 255, 255, .2); color: #fff; }
.lp-foot { position: relative; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }
.lp-foot span { display: inline-flex; align-items: center; gap: 6px; }
.lp-foot i { color: var(--emerald); }

@media (min-width: 1024px) {
  .login-cover { position: sticky; top: 0; height: 100vh; height: 100dvh; }
}
@media (min-width: 1024px) and (max-height: 860px) {
  .lp-logo { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 14px; padding: 6px; }
  .lp-card h2 { font-size: 26px; }
  .lp-sub { margin-bottom: 16px; }
  .lp-form { gap: 12px; }
  .lp-input .input { height: 48px; }
  .lp-submit { height: 50px; }
  .lp-divider { margin: 18px 0 10px; }
  .lc-content { padding: 28px 48px; }
  .lc-hero h1 { margin: 16px 0 10px; }
  .lc-stats { margin-top: 20px; }
}

/* ---------- Mobile: hero + sheet (app feel) ---------- */
@media (max-width: 1023px) {
  .login { grid-template-columns: 1fr; }
  .login-cover { min-height: 42vh; min-height: 42dvh; }
  .lc-content { padding: calc(20px + env(safe-area-inset-top)) 22px 64px; justify-content: flex-start; gap: 18px; }
  .lc-brand img { width: 48px; height: 48px; border-radius: 15px; }
  .lc-brand b { font-size: 16px; }
  .lc-hero h1 { font-size: 26px; margin: 14px 0 8px; }
  .lc-hero p, .lc-features, .lc-kicker, .lc-bottom .lc-dots { display: none; }
  .lc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; gap: 8px; }
  .lc-stats > div { padding: 10px 12px; border-radius: 16px; }
  .lc-stats b { font-size: 21px; margin-top: 2px; }
  .lc-stats i { display: none; }
  .lc-bottom { position: absolute; left: 22px; right: 22px; bottom: 44px; }
  .lc-announce { font-size: 12.5px; }
  .login-panel { margin-top: -34px; border-radius: 30px 30px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 40px -20px rgba(15, 23, 42, .3); z-index: 2; }
  .login-panel::after { content: ''; position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--line-2); }
  .lp-top { padding-top: 10px; }
  .lp-card { margin: 12px auto; }
  .lp-logo { display: none; }
  .lp-card h2 { font-size: 25px; }
  .lp-sub { margin-bottom: 16px; }
  .lp-demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-foot { justify-content: center; text-align: center; }
}
@media (max-width: 380px) {
  .lp-portal button { padding: 6px 8px; font-size: 12.5px; }
}
