/* Login / signup — split screen. Left is pure background (video + scrim +
   grain, no text/logo/nav on it by design); right is the actual
   ConversionXBot auth UI. Reuses styles.css for :root tokens, fonts, and
   the base html/body reset. */

.login-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #c8c8c8;
  transition: color 0.2s ease;
}

.login-back:hover {
  color: #fff;
}

.login-back .logo {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.login-back .logo-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Left: background only ---------- */

.login-visual {
  position: relative;
  flex: 1 1 50%;
  overflow: hidden;
  background: #000;
}

.login-visual-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.login-visual-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 100%);
}

.login-visual-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ---------- Right: auth UI ---------- */

.login-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #000;
}

.login-panel-inner {
  width: 100%;
  max-width: 380px;
}

.login-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.login-panel-inner h1 {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.login-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 30px;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #c8c8c8;
  margin-bottom: 8px;
}

.login-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14.5px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.login-field input::placeholder {
  color: #6b6b6b;
}

.login-field input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.login-submit-btn {
  width: 100%;
  margin-top: 4px;
  text-align: center;
}

.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none !important;
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.google-btn:hover {
  background: #f7f7f7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.google-icon {
  flex-shrink: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12.5px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.login-email-hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.login-email-hint a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sign-in/sign-up copy swap (see login.js's animateToggle) — the same
   rise-and-fade curve used everywhere else on this site, not a new motion
   accent of its own. */
.login-swap {
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-swap-hidden {
  opacity: 0;
  transform: translateY(var(--swap-y, -8px));
}

.login-status {
  min-height: 18px;
  font-size: 13px;
  margin: 16px 0 0;
  color: #8e8e8e;
}

.login-status.is-error {
  color: #e0473e;
}

.login-status.is-success {
  color: #6fd39b;
}

.login-waitlist-hint {
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.auth-banner:empty {
  display: none;
}

.auth-banner {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
}

.auth-banner.is-error {
  color: #ffb4ae;
  background: rgba(224, 71, 62, 0.12);
  border: 1px solid rgba(224, 71, 62, 0.3);
}

.auth-banner.is-success {
  color: #a7ecc4;
  background: rgba(111, 211, 155, 0.12);
  border: 1px solid rgba(111, 211, 155, 0.3);
}

.login-waitlist-hint a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  .login-shell {
    flex-direction: column;
  }

  .login-visual {
    flex: 0 0 200px;
    min-height: 200px;
  }

  .login-panel {
    flex: 1;
    padding: 36px 24px 48px;
  }
}
