.auth-body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  height: 100vh;
}

/* ---------------------------------------------------------------------- */
/* Illustration panel                                                     */
/* ---------------------------------------------------------------------- */

.auth-illustration {
  position: relative;
  overflow: hidden;
  background: #0b6d54;
  display: flex;
  flex-direction: column;
}

.illustration-brand {
  position: absolute;
  top: 32px;
  left: 40px;
  z-index: 3;
}

.scene-box {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.scene-box .scene {
  display: block;
  width: 100%;
  height: 100%;
}

.illustration-copy {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 26px 52px 30px;
  color: #eafff5;
  background: #0b6d54;
}

.illustration-headline {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px 0;
}

.illustration-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: #b7e9d7;
  margin: 0;
  max-width: 420px;
}

.illustration-brand.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.illustration-brand .brand-mark {
  background: #ffffff;
  color: var(--accent-dark);
  box-shadow: 0 2px 10px rgba(6, 63, 48, 0.25);
}

.illustration-brand .auth-brand-text {
  color: #063f30;
}

/* --- animation --- */

.sun-group circle:first-child {
  animation: sun-breathe 6s ease-in-out infinite;
  transform-origin: 590px 140px;
}

@keyframes sun-breathe {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.network-dots .dot {
  animation: dot-pulse 3.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.dot.d1 { animation-delay: 0s; }
.dot.d2 { animation-delay: 0.5s; }
.dot.d3 { animation-delay: 1s; }
.dot.d4 { animation-delay: 1.5s; }
.dot.d5 { animation-delay: 2s; }
.dot.d6 { animation-delay: 2.5s; }

@keyframes dot-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

.birds .bird {
  animation: bird-flap 1.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.bird.b2 { animation-delay: 0.3s; }

@keyframes bird-flap {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

.sprout {
  animation: sprout-sway 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: bottom center;
}
.sprout-small { animation-duration: 4.2s; animation-delay: 0.6s; }

@keyframes sprout-sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sun-group circle:first-child,
  .network-dots .dot,
  .birds .bird,
  .sprout {
    animation: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Form panel                                                             */
/* ---------------------------------------------------------------------- */

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(700px 420px at 85% -10%, rgba(14, 159, 126, 0.08) 0%, rgba(14, 159, 126, 0) 60%),
    var(--bg);
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20, 30, 25, 0.04), 0 24px 60px -24px rgba(14, 60, 46, 0.16);
  padding: 40px 38px 34px;
  width: 100%;
  max-width: 380px;
}

.auth-brand--compact {
  display: none;
  margin-bottom: 22px;
}

.auth-card .auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  font-size: 14px;
  border-radius: 10px;
}

.auth-brand-text {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.auth-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  margin: 4px 0 6px 0;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 26px 0;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  padding: 11px 14px;
  font-size: 13.5px;
  margin-top: 4px;
  box-shadow: 0 8px 20px -8px rgba(14, 159, 126, 0.55);
}

#login-form .error-box {
  margin: -4px 0 14px 0;
}

.auth-footnote {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  margin-top: 18px;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 880px) {
  .auth-body {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .auth-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }
  .auth-illustration {
    min-height: 260px;
  }
  .illustration-copy {
    padding: 32px 28px 28px;
    max-width: none;
  }
  .illustration-headline {
    font-size: 26px;
    margin: 18px 0 10px 0;
  }
  .illustration-sub {
    display: none;
  }
  .auth-panel {
    padding: 32px 20px 48px;
  }
}

@media (max-width: 520px) {
  .illustration-copy .illustration-sub { display: none; }
  .illustration-headline { font-size: 22px; }
}
