/*
 * Login page styling.
 *
 * Mirrors bb-crm's login screen (same palette, same split layout) but is
 * deliberately PRODUCT-NEUTRAL: this page sits at `/` on the load balancer and
 * serves everyone, so it must never claim to be Platform or Survey. Which
 * product you land in is decided after authentication, from your entitlements.
 *
 * Served as a static file rather than inlined because the service's helmet CSP
 * sets `style-src 'self'` — inline styles would be blocked.
 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fafafa;
  color: #1b1b1b;
  min-height: 100vh;
  display: flex;
}

.shell { display: flex; width: 100%; min-height: 100vh; }

/* ── left panel ─────────────────────────────────────────────── */
.pitch {
  width: 52%;
  background: #fafafa;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.cube {
  position: absolute;
  left: -57px;
  top: 300px;
  width: 704px;
  height: 800px;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.pitch-body { position: relative; z-index: 1; margin: auto 0; max-width: 560px; }

.pitch h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pitch h1 em { color: #f43f3f; font-style: normal; }

.pitch p {
  margin-top: 16px;
  font-size: 1rem;
  color: #747474;
  line-height: 1.6;
  max-width: 480px;
}

.stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 460px;
}

.stat {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 16px 18px;
}
.stat b { display: block; font-size: 1.35rem; font-weight: 700; }
.stat span { font-size: 0.8rem; color: #747474; }

.logo-row { position: relative; z-index: 1; display: flex; align-items: center; }
.logo-row img { height: 32px; }

/* ── right panel ────────────────────────────────────────────── */
.form-panel {
  width: 48%;
  background: #fff;
  border-left: 1px solid #e3e3e3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.card { width: 388px; max-width: 100%; }

.card h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }
.card .sub { margin-top: 8px; color: #747474; font-size: 0.95rem; }

form { margin-top: 32px; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.field { margin-bottom: 18px; position: relative; }

input[type='email'],
input[type='password'],
input[type='text'] {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1b1b1b;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  outline: none;
}

input:focus { border-color: #98a2b3; }
input.invalid { border-color: #f43f3f; }

.toggle {
  position: absolute;
  right: 14px;
  top: 38px;
  background: none;
  border: 0;
  cursor: pointer;
  color: #98a2b3;
  font-size: 0.78rem;
  font-family: inherit;
  padding: 4px;
}

.forgot { display: block; text-align: right; font-size: 0.85rem; color: #2563eb; text-decoration: none; margin-bottom: 22px; }
.forgot:hover { text-decoration: underline; }

button[type='submit'] {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #f43f3f;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
button[type='submit']:hover { background: #e13333; }
button[type='submit']:disabled { opacity: 0.6; cursor: not-allowed; }

.alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b3261e;
  font-size: 0.875rem;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.field-error { color: #f43f3f; font-size: 0.8rem; margin-top: 6px; }

.foot { margin-top: 26px; text-align: center; font-size: 0.9rem; color: #575757; }
.foot a { color: #f43f3f; text-decoration: none; font-weight: 500; }

.hidden { display: none; }

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .pitch { display: none; }
  .form-panel { width: 100%; border-left: 0; min-height: 100vh; }
}
