/* Pitch Hiker — Auth pages (login / signup / forgot)
 * Editorial 2-column layout: brand-side on the left, focused form on the right.
 * Mobile: form stacks above, side becomes a slim eyebrow strip.
 */

/* Pull the auth shell to fill the viewport, ignoring main's default padding. */
main:has(.auth-shell) {
  padding: 0;
  max-width: none;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar-h));
  background: var(--color-bg);
  position: relative;
}

/* Decorative center divider — barely-there hairline */
.auth-shell::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-border) 30%,
    var(--color-border) 70%,
    transparent
  );
  transform: translateX(-1px);
}

/* ── LEFT SIDE: brand / quote ────────────────────────────────────────── */
.auth-side {
  position: relative;
  padding: var(--space-9) var(--space-7) var(--space-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  background:
    radial-gradient(
      ellipse at 0% 0%,
      var(--color-accent-soft) 0%,
      transparent 55%
    ),
    var(--color-bg);
  overflow: hidden;
}

.auth-side::before {
  /* Cinema-style frame at the top */
  content: "";
  position: absolute;
  top: var(--space-6);
  left: var(--space-7);
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

.auth-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
  font-weight: 500;
}

.auth-quote {
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--color-text);
  position: relative;
  max-width: 26ch;
}

.auth-quote-mark {
  display: block;
  font-size: 2.4em;
  line-height: 0.6;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 0.1em;
  margin-left: -0.15em;
}

.auth-side-bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 36ch;
}

.auth-side-bullets li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.auth-side-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 18px;
  height: 1px;
  background: var(--color-accent);
}

/* ── RIGHT SIDE: form ────────────────────────────────────────────────── */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-6);
}

.auth-form-card {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: var(--space-6);
}

.auth-form-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.024em;
  margin: 0 0 var(--space-2);
}

.auth-form-header p {
  margin: 0;
  font-size: var(--fs-base);
}

/* Form fields */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-form .form-row label,
.auth-form-row label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  /* Slightly larger, more presence than default */
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-base);
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-focus);
  background: var(--color-bg-elev);
}

.auth-tiny-link {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

.auth-tiny-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-submit {
  width: 100%;
  margin-top: var(--space-2);
}

.auth-foot {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-align: center;
}

.auth-foot a {
  color: var(--color-text);
  font-weight: 500;
  text-underline-offset: 3px;
}

.auth-foot a:hover {
  color: var(--color-accent);
}

/* ── Responsive: stack on mobile ─────────────────────────────────────── */
@media (max-width: 880px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-shell::before { display: none; }

  .auth-side {
    padding: var(--space-7) var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
  }

  .auth-side::before { left: var(--space-5); top: var(--space-5); }

  .auth-quote {
    font-size: clamp(1.5rem, 5vw, 2.1rem);
  }

  .auth-side-bullets {
    /* Compact horizontal list on mobile to save vertical space */
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    margin-top: var(--space-3);
  }

  .auth-main {
    padding: var(--space-7) var(--space-5);
  }
}
