/* =========================
   LOGIN PAGE BACKGROUND

   Dark canvas plus soft glowing
   orbs. Keep motion gentle.
   ========================= */

.login-body {
  overflow-x: hidden;
}

.login-page {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top left, #2a2158 0%, transparent 42%),
    radial-gradient(circle at bottom right, #123a3a 0%, transparent 38%),
    linear-gradient(160deg, #0b1020, #151b36 55%, #0e1428);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}

.bg-orb-one {
  width: 280px;
  height: 280px;
  background: #6d5efc;
  top: 8%;
  left: 8%;
}

.bg-orb-two {
  width: 240px;
  height: 240px;
  background: #3ecfb3;
  right: 10%;
  bottom: 12%;
}

.bg-orb-three {
  width: 180px;
  height: 180px;
  background: #ff8ad4;
  right: 28%;
  top: 18%;
}

/* =========================
   LOGIN SCENE

   Animals sit around the card.
   The card stays above them.
   ========================= */

.login-scene {
  position: relative;
  width: min(920px, 100%);
  min-height: 560px;
  display: grid;
  place-items: center;
}

.login-scene-simple {
  min-height: auto;
}

/* =========================
   LOGIN CARD

   Glass panel for the form.
   ========================= */

.login-card {
  position: relative;
  z-index: 5;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.phase-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(126, 224, 200, 0.12);
}

.login-card h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.login-subtitle {
  margin: 8px 0 22px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"],
.field input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(8, 12, 28, 0.55);
  color: var(--text);
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(126, 224, 200, 0.18);
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 700;
}

.register-card {
  width: min(480px, 100%);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.forgot-link {
  color: var(--muted);
}

.login-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  color: #07241d;
  background: linear-gradient(135deg, #7ee0c8, #6ad3ff);
  cursor: pointer;
  text-decoration: none;
}

.login-button:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.create-account {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
}

.form-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(139, 124, 255, 0.16);
  color: var(--text);
  font-size: 0.92rem;
}

/* =========================
   ANIMAL CHARACTERS

   Simple cartoon placeholders
   that slowly float in place.
   ========================= */

.animal {
  position: absolute;
  width: 108px;
  z-index: 2;
  pointer-events: none;
  animation: float-soft 4.8s ease-in-out infinite;
}

.animal svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25));
}

.animal-cat {
  top: 18px;
  left: 8%;
  animation-delay: 0s;
}

.animal-bunny {
  top: 10px;
  right: 8%;
  animation-delay: 0.6s;
}

.animal-panda {
  left: 0;
  top: 42%;
  animation-delay: 1.1s;
}

.animal-bear {
  right: 0;
  top: 42%;
  animation-delay: 1.6s;
}

.animal-frog {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0.3s;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animal-frog {
  animation-name: float-frog;
}

@keyframes float-frog {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* =========================
   MOBILE LAYOUT

   Move animals above the card
   so they never cover the form.
   ========================= */

@media (max-width: 800px) {
  .login-scene {
    min-height: auto;
    padding-top: 92px;
  }

  .animal {
    width: 58px;
    top: 8px;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .animal-cat { left: 4%; }
  .animal-bunny { left: 24%; }
  .animal-panda { left: 44%; }
  .animal-bear { left: 64%; }
  .animal-frog {
    left: 84%;
    transform: none;
    animation-name: float-soft;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 18px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
