/* ============================================================
   Panda AI — Login page  ("Bamboo")
   Depends on tokens.css + landing.css (for .scene, .glass, .btn,
   .speech and the panda mascot). Import order: tokens → landing → login.
   ============================================================ */

.auth {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: clamp(1.5rem, 5vw, 3rem);
}
.auth__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
}

/* ---------- Left: brand + mascot ---------- */
.auth__intro .brand { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.auth__title {
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 500;
  font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; color: var(--forest-deep);
}
.auth__title em { font-style: italic; color: var(--leaf); text-shadow: 0 6px 28px var(--signal-glow); }
.auth__lead { margin-top: var(--space-4); color: var(--text-sec); font-size: var(--step-1); font-weight: 300; max-width: 34ch; }
.auth__intro .hero__mascot { align-items: flex-start; margin-top: clamp(1rem, 3vw, 2rem); }
.auth__intro .speech { text-align: left; }

/* ---------- Right: auth card ---------- */
.auth__card {
  width: 100%;
  max-width: 430px;
  justify-self: center;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.auth__card h1 {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-2);
  letter-spacing: -0.02em; color: var(--forest-deep);
}
.auth__card .sub { color: var(--text-sec); margin: 0.35rem 0 var(--space-5); font-size: var(--step-0); }

/* Google button */
.gbtn {
  width: 100%; height: 52px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  background: #fff; color: #1c1c1e; font-family: var(--font-ui); font-weight: 600; font-size: var(--step-0);
  border: 1px solid rgba(0,0,0,0.07); box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.gbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* divider */
.divider { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-5) 0; }
.divider span { font-size: var(--step--1); color: var(--text-ter); font-family: var(--font-mono); letter-spacing: 0.1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--glass-hair); }

/* form fields */
.field { margin-bottom: var(--space-4); }
.field__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.field label { display: block; font-size: var(--step--1); color: var(--text-sec); font-weight: 500; margin-bottom: 0.4rem; }
.field__row label { margin-bottom: 0; }
.field input {
  width: 100%; height: 50px; border-radius: var(--r-md);
  border: 1px solid var(--glass-border); background: rgba(255,255,255,0.04);
  padding: 0 1rem; font-family: var(--font-ui); font-size: var(--step-0); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder { color: var(--text-ter); }
.field input:focus {
  outline: none; border-color: var(--leaf); background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(47,190,106,0.18);
}

.link { color: var(--leaf); font-weight: 500; font-size: var(--step--1); }
.link:hover { text-decoration: underline; }

.auth__submit { width: 100%; height: 52px; margin-top: var(--space-3); }

.auth__alt { text-align: center; margin-top: var(--space-5); color: var(--text-sec); font-size: var(--step-0); }
.auth__terms { text-align: center; margin-top: var(--space-5); color: var(--text-ter); font-size: 0.72rem; line-height: 1.6; }
.auth__terms a { color: var(--text-sec); }
.auth__terms a:hover { color: var(--forest); }

/* tiny "back to site" up top-left */
.auth__back {
  position: absolute; top: clamp(1rem, 3vw, 1.6rem); left: var(--gutter);
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text-sec); font-size: var(--step--1); font-weight: 500;
}
.auth__back:hover { color: var(--forest); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .auth__grid { grid-template-columns: 1fr; gap: var(--space-6); max-width: 440px; }
  .auth__intro { text-align: center; }
  .auth__intro .hero__mascot { display: none; }       /* keep mobile login compact */
  .auth__lead { margin-inline: auto; }
  .auth__card { justify-self: stretch; }
  .auth__back { display: none; }                        /* logo already links home */
}
@media (max-width: 480px) {
  .auth__title { font-size: var(--step-3); }
}
