/* Sign-in and sign-up screens.
   Split layout: the left panel carries the product story (a Meta reviewer
   lands here too), the right panel is the form. Below 860px the panel
   collapses to a compact header so the form stays above the fold on a
   phone — most page administrators sign in from one. */

:root {
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #1877f2;
  --accent-dark: #145dbf;
  --ok: #16a34a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  color: var(--body);
  background: #fff;
  font: 16px/1.6 ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Left: product panel ────────────────────────────────── */

.panel {
  position: relative;
  overflow: hidden;
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #e8eefb;
  background:
    radial-gradient(700px 380px at 12% 8%, #2563eb55, transparent),
    radial-gradient(700px 380px at 88% 92%, #7c3aed55, transparent),
    #0d1424;
}

.panel-logo {
  position: absolute; top: 34px; left: 52px;
  font-weight: 800; font-size: 18px; color: #fff;
  letter-spacing: -.3px; text-decoration: none;
}

.panel h2 {
  font-size: 34px; line-height: 1.2; margin: 0 0 16px;
  color: #fff; letter-spacing: -.8px; font-weight: 750;
}
.panel p.lead { font-size: 16.5px; color: #b9c6df; margin: 0 0 34px; max-width: 440px; }

.panel-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 440px; }
.panel-points li { display: flex; gap: 13px; align-items: flex-start; }
.panel-points .ico {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px;
  background: #ffffff14; border: 1px solid #ffffff1f;
}
.panel-points b { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.panel-points span { font-size: 14px; color: #9fb0cc; }

.panel-foot {
  position: absolute; bottom: 30px; left: 52px; right: 52px;
  font-size: 13px; color: #7f8fab;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.panel-foot a { color: #9fb0cc; text-decoration: none; }
.panel-foot a:hover { color: #fff; }

/* ── Right: form ────────────────────────────────────────── */

.form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px;
}
.form-box { width: 100%; max-width: 384px; }

.form-box h1 { font-size: 27px; margin: 0 0 6px; color: var(--ink); letter-spacing: -.5px; }
.form-box .sub { color: var(--muted); font-size: 15px; margin: 0 0 28px; }

.org-chip {
  display: inline-block; background: #e7f0fe; color: var(--accent-dark);
  font-weight: 600; font-size: 13.5px; padding: 5px 13px;
  border-radius: 999px; margin-bottom: 14px;
}

.field { margin-bottom: 17px; }
label { display: block; font-size: 13.5px; font-weight: 550; color: var(--ink); margin: 0 0 7px; }

input[type=text], input[type=email], input[type=password] {
  width: 100%; font: inherit; padding: 13px 15px;
  border: 1px solid #d7dfea; border-radius: 11px;
  background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px #1877f229;
}
input::placeholder { color: #a3b0c2; }
.hint { font-size: 12.5px; color: var(--muted); margin: 7px 0 0; }

button {
  font: inherit; font-weight: 600; border: none; border-radius: 11px;
  padding: 14px 20px; cursor: pointer; width: 100%;
  background: var(--accent); color: #fff;
  transition: background .15s, transform .06s;
}
button:hover:not(:disabled) { background: var(--accent-dark); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.secondary { background: #eef1f6; color: var(--ink); }
button.secondary:hover:not(:disabled) { background: #e3e8ef; }

.msg { font-size: 14px; margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; display: none; }
.msg.show { display: block; }
.msg.err  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; white-space: pre-wrap; }
.msg.ok   { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.msg.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.divider { height: 1px; background: var(--line); margin: 26px 0 20px; }
.foot-note { font-size: 13.5px; color: var(--muted); text-align: center; margin: 0; }
.foot-note a { color: var(--accent); }

.spinner {
  display: inline-block; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
  vertical-align: -2px; margin-right: 7px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Steps shown on the sign-up screen */
.steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: s; }
.steps li {
  position: relative; padding: 0 0 16px 38px; counter-increment: s;
  border-left: 2px solid var(--line); margin-left: 12px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute; left: -13px; top: -2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--line); color: var(--muted);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.steps li.active::before { background: var(--accent); color: #fff; }
.steps li b { display: block; font-size: 14.5px; color: var(--ink); }
.steps li span { font-size: 13px; color: var(--muted); }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 860px) {
  body { grid-template-columns: 1fr; }
  .panel {
    padding: 22px 24px 26px;
    justify-content: flex-start;
  }
  .panel-logo { position: static; margin-bottom: 14px; display: block; }
  .panel h2 { font-size: 23px; margin-bottom: 8px; }
  .panel p.lead { font-size: 15px; margin-bottom: 0; }
  .panel-points, .panel-foot { display: none; }
  .form-side { padding: 32px 22px 60px; }
}
