/* ============================================================
   KodiManager — Auth page motion & Google button
   Loaded on login / signup / forgot-password (see global.css?v=18 pages).
   Respects prefers-reduced-motion.
   ============================================================ */

/* Floating soft orbs on left panel */
.auth-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}
.auth-orb--1 {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(245,166,35,0.28) 0%, rgba(245,166,35,0) 70%);
  animation: authOrbFloat 14s ease-in-out infinite;
}
.auth-orb--2 {
  width: 220px;
  height: 220px;
  left: -50px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(15,32,68,0.12) 0%, rgba(15,32,68,0) 70%);
  animation: authOrbFloat 18s ease-in-out infinite reverse;
}

@keyframes authOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(12px, -18px) scale(1.04); }
  66%      { transform: translate(-10px, 10px) scale(0.97); }
}

/* Staggered entrance */
.auth-animate {
  opacity: 0;
  transform: translateY(14px);
  animation: authFadeUp 560ms var(--ease-out-soft, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}
.auth-animate--1 { animation-delay: 40ms; }
.auth-animate--2 { animation-delay: 120ms; }
.auth-animate--3 { animation-delay: 200ms; }
.auth-animate--4 { animation-delay: 280ms; }
.auth-animate--form {
  animation-delay: 80ms;
  transform: translateY(18px);
}

@keyframes authFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Form fields subtle focus lift already in global; add light hover on wrap */
.auth-form-wrap .form-group input {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.auth-form-wrap .form-group input:focus {
  transform: translateY(-1px);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--clr-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--clr-border);
}
.auth-divider span { flex-shrink: 0; }

/* Back-to-homepage link — small, unobtrusive, sits above both panels so it
   reads correctly whether it's over the light auth-panel--left gradient or
   the plain white auth-panel--right (the only panel visible on mobile, since
   .auth-panel--left is display:none there — see global.css). */
.auth-back-home {
  position       : fixed;
  top            : 18px;
  left           : 18px;
  z-index        : 20;
  display        : inline-flex;
  align-items    : center;
  gap            : 6px;
  padding        : 7px 14px 7px 10px;
  border-radius  : 999px;
  background     : rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border         : 1px solid var(--clr-border);
  color          : var(--clr-navy);
  font-size      : 0.8125rem;
  font-weight    : 600;
  text-decoration: none;
  box-shadow     : var(--shadow-sm);
  transition     : background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.auth-back-home:hover {
  background     : #fff;
  transform      : translateX(-2px);
  box-shadow     : var(--shadow-md);
  text-decoration: none;
}
.auth-back-home svg { flex-shrink: 0; }
@media (max-width: 700px) {
  .auth-back-home { top: 12px; left: 12px; padding: 6px 12px 6px 8px; font-size: 0.75rem; }
}

/* Google button */
.btn--google {
  background: #fff;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
  gap: 10px;
  font-weight: 600;
}
.btn--google:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #c5d0e0;
  box-shadow: 0 4px 14px rgba(15, 32, 68, 0.08);
  text-decoration: none;
}
.btn--google svg { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .auth-orb,
  .auth-animate {
    animation: none !important;
  }
  .auth-animate {
    opacity: 1;
    transform: none;
  }
}
