:root {
  --ink: #17201a;
  --muted: #68706a;
  --paper: #0c1210;
  --asset: #127c73;
  --asset-glow: rgba(18, 124, 115, 0.45);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.10);
  --card-glow: 0 24px 80px rgba(18, 124, 115, 0.12), 0 2px 16px rgba(0,0,0,0.3);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: #e8e4de;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Animated background orbs ── */

.login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(18, 124, 115, 0.55), transparent 70%);
  top: -10%;
  left: -8%;
  animation-duration: 20s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(180, 63, 85, 0.35), transparent 70%);
  bottom: -12%;
  right: -6%;
  animation-duration: 24s;
  animation-delay: -6s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(182, 137, 46, 0.3), transparent 70%);
  top: 40%;
  right: 30%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 30px) scale(1.03); }
}

/* ── Login container ── */

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

/* ── Glassmorphism card ── */

.login-card {
  background: var(--card-bg);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px 40px 36px;
  box-shadow: var(--card-glow);
  animation: cardAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Brand section ── */

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-icon {
  display: inline-flex;
  margin-bottom: 20px;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { filter: drop-shadow(0 0 12px var(--asset-glow)); }
  50% { filter: drop-shadow(0 0 24px var(--asset-glow)); }
}

.login-brand h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #a8b5ab 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.login-subtitle {
  color: rgba(232, 228, 222, 0.55);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Divider ── */

.login-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  margin: 8px 0 28px;
}

/* ── Google button area ── */

.login-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

#googleButtonContainer {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-hint {
  color: rgba(232, 228, 222, 0.4);
  font-size: 0.8rem;
  text-align: center;
  transition: color 0.3s ease;
}

.login-hint.error {
  color: #e05a6f;
}

/* ── Footer ── */

.login-footer {
  text-align: center;
  padding-top: 4px;
}

.login-footer p {
  color: rgba(232, 228, 222, 0.3);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px 28px;
    border-radius: 20px;
  }

  .login-brand h1 {
    font-size: 1.65rem;
  }
}

@media (prefers-color-scheme: light) {
  /* Keep dark login regardless of system theme for dramatic effect */
}
