/* ===== ABANotes login refresh — loads AFTER login_facelift.css =====
   Adds: logo lockup, login-left / carousel-right hero, image carousel,
   subtle floating Dyro in the login card. Overrides only layout; reuses
   the package's component styling for the card, features, and roles. */

/* Top-level shell: vertical flow instead of the story|login grid */
.login-shell {
  width: min(1400px, calc(100% - 32px));
  grid-template-columns: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Shared surface for the new blocks (matches the package's card look) */
.lp-topbar, .lp-notice, .lp-carousel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* Brand bar */
.lp-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
}
.brand-logo {
  height: 46px; width: auto; max-width: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 10px 16px rgba(59, 85, 210, .16));
}

/* Optional login-notice banner */
.lp-notice {
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex; gap: 12px; align-items: center;
}
.lp-notice .lp-notice-emoji { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.lp-notice h3 { margin: 0; font-size: .98rem; line-height: 1.25; }
.lp-notice p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }

/* Hero: login card (left) + carousel (right) */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: stretch;
}
.login-panel { justify-content: flex-start; }
.carousel-panel { min-width: 0; display: flex; align-items: center; }

/* Carousel */
.lp-carousel {
  position: relative; width: 100%; border-radius: 22px; overflow: hidden;
  aspect-ratio: 3 / 2;
  background: linear-gradient(180deg, #eef4ff, #f7fbff);
}
.lp-track { position: absolute; inset: 0; }
.lp-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s ease;
  display: flex; align-items: center; justify-content: center;
}
.lp-slide.is-active { opacity: 1; visibility: visible; }
.lp-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

.lp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer; z-index: 3;
  background: rgba(255, 255, 255, .86); color: var(--ink);
  box-shadow: 0 8px 20px rgba(31, 61, 135, .18);
  font-size: 24px; line-height: 1; display: grid; place-items: center;
  transition: background .18s, transform .18s;
}
.lp-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.lp-prev { left: 12px; }
.lp-next { right: 12px; }

.lp-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
  display: flex; gap: 7px; justify-content: center;
}
.lp-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(17, 27, 56, .28); transition: background .2s, width .2s;
}
.lp-dot.is-active { background: var(--blue); width: 22px; border-radius: 6px; }

/* Subtle floating Dyro inside the login card — no rotation, no scaling */
.login-dyro { animation: lp-float 3.6s ease-in-out infinite; will-change: transform; }
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .lp-hero { grid-template-columns: 1fr; }   /* stack: login first, carousel below */
  .login-panel { order: 1; }
  .carousel-panel { order: 2; }
}
@media (max-width: 640px) {
  .login-shell { width: calc(100% - 18px); gap: 12px; }
  .lp-topbar { padding: 14px 16px; }
  .brand-logo { height: 38px; }
  .lp-arrow { width: 34px; height: 34px; font-size: 20px; }
  .lp-dots { bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-dyro { animation: none; }
  .lp-slide { transition: none; }
}
