/* ===== Login Page - HZ HUB Style ===== */

.login-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 0 1rem;
  animation: fadeIn 0.8s var(--ease-out) 0.1s both;
}

/* ===== Card - transparent, blends with bg ===== */
.login-card-inner {
  position: relative;
  border-radius: var(--r-xl);
  background: rgba(12, 8, 24, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.06);
  padding: 3.5rem 2.5rem 2.5rem;
}

/* ===== Logo with orbits ===== */
.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.login-logo-orbit {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Outer orbit */
.orbit-outer {
  position: absolute;
  inset: -32px;
  pointer-events: none;
  animation: spin 20s linear infinite;
}

.orbit-outer svg { width: 100%; height: 100%; }

.orbit-outer-dot {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px 2px rgba(168, 85, 247, 0.7);
}

/* Inner orbit */
.orbit-inner {
  position: absolute;
  inset: -16px;
  pointer-events: none;
  animation: spinRev 14s linear infinite;
}

.orbit-inner svg { width: 100%; height: 100%; }

.orbit-inner-dot {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e879f9;
  box-shadow: 0 0 8px 1px rgba(232, 121, 249, 0.6);
}

/* Glow behind logo */
.login-logo-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: blur(28px);
  background: rgba(147, 51, 234, 0.5);
  border-radius: 50%;
  transform: scale(2);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

/* Logo box */
.login-logo-box {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0420 0%, #1a0840 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 12px 40px rgba(0, 0, 0, 0.6);
  animation: float 5s ease-in-out infinite;
}

.login-logo-box svg {
  width: 40px;
  height: 40px;
}

/* ===== Brand ===== */
.login-brand {
  text-align: center;
  animation: fadeInText 0.7s var(--ease-out) 0.5s both;
}

.login-brand h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg,
    #fff 0%,
    #e9d5ff 30%,
    #c084fc 60%,
    #e879f9 85%,
    #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.15));
}

.login-brand-divider {
  height: 1px;
  margin: 0.625rem auto 0.5rem;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
  animation: expandLine 0.6s var(--ease-out) 0.8s both;
}

.login-brand p {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(168, 85, 247, 0.35);
  animation: fadeInText 0.5s ease 0.9s both;
}

/* ===== Error ===== */
.login-error {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #f87171;
  align-items: center;
  gap: 0.625rem;
  backdrop-filter: blur(4px);
}

.login-error.show { display: flex; animation: fadeInText 0.25s ease; }
.login-error svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== Google Button ===== */
.google-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 54px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: linear-gradient(135deg,
    rgba(124, 58, 237, 0.15) 0%,
    rgba(147, 51, 234, 0.12) 50%,
    rgba(168, 85, 247, 0.18) 100%);
  box-shadow:
    0 4px 30px rgba(147, 51, 234, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: all 0.3s var(--ease);
  overflow: hidden;
  text-decoration: none;
  animation: fadeInText 0.6s var(--ease-out) 0.7s both;
}

.google-btn:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow:
    0 0 50px rgba(147, 51, 234, 0.2),
    0 0 100px rgba(147, 51, 234, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: scale(1.025);
}

.google-btn:active { transform: scale(0.97); }

/* Shimmer */
.google-btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-200%);
  animation: shimmer 3s infinite;
  animation-delay: 5s;
  pointer-events: none;
}

/* Glass highlight */
.google-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.google-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.google-btn span { position: relative; z-index: 1; }

/* ===== Secure Badge ===== */
.login-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  animation: fadeInText 0.5s ease 1.2s both;
}

.secure-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  flex-shrink: 0;
}

.secure-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.75;
  animation: ping 2s infinite;
}

.secure-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.25);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .login-card-inner { padding: 2.5rem 1.5rem; }
  .login-brand h2 { font-size: 24px; }
  .login-logo-box { width: 64px; height: 64px; }
  .login-logo-box svg { width: 34px; height: 34px; }
  .orbit-outer { inset: -28px; }
  .orbit-inner { inset: -14px; }
}
