/* Sign-in / sign-up: a colourful brand panel beside one obvious white card.
   Light by design — the old file flipped to near-black in dark mode, which is
   what made these pages read as broken. */

:root {
  --bg: #eef3fb;
  --bg-tint-1: rgba(10, 102, 194, 0.16);
  --bg-tint-2: rgba(124, 58, 237, 0.14);
  --bg-tint-3: rgba(14, 138, 125, 0.16);
  --panel: #ffffff;
  --panel-2: #f5f8fd;
  --ink: #0f172a;
  --ink-soft: #45556c;
  --ink-faint: #7b8aa0;
  --line: #e3e9f2;
  --line-strong: #d3ddec;
  --accent: #0a66c2;
  --accent-dark: #084d94;
  --indigo: #4f46e5;
  --teal: #0e8a7d;
  --violet: #7c3aed;
  --amber: #d97706;
  --good: #15803d;
  --accent-soft: #e7f0fb;
  --brand-gradient: linear-gradient(135deg, #0a66c2 0%, #4f46e5 52%, #0e8a7d 100%);
  --shadow-card: 0 2px 6px rgba(15, 23, 42, 0.05), 0 26px 64px rgba(15, 23, 42, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(42% 38% at 8% 4%, var(--bg-tint-1), transparent 68%),
    radial-gradient(38% 40% at 96% 12%, var(--bg-tint-2), transparent 70%),
    radial-gradient(46% 46% at 78% 96%, var(--bg-tint-3), transparent 72%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth { display: grid; grid-template-columns: 1.06fr 1fr; min-height: 100vh; }

/* ------------------------------ brand panel ------------------------------ */

.aside {
  position: relative;
  padding: 34px 40px 34px;
  color: #fff;
  background: var(--brand-gradient);
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: hidden;
}
.aside::after {
  content: '';
  position: absolute;
  inset: -30% -20% auto auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 66%);
  pointer-events: none;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; position: relative; z-index: 1; }
img.mark { object-fit: cover; font-size: 0; }
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; color: rgba(255, 255, 255, 0.78); font-size: 0.72rem; }

.aside-copy { position: relative; z-index: 1; max-width: 30rem; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.aside-copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 13px; }
.points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}
.points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  font-weight: 700;
}
.points b { color: #fff; font-weight: 650; }

.preview {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  padding: 15px 17px;
  backdrop-filter: blur(10px);
}
.preview-head {
  margin: 0 0 11px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.preview ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.preview li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; }
.preview li b { display: block; font-weight: 650; }
.preview li small { color: rgba(255, 255, 255, 0.78); font-size: 0.78rem; }
.preview .dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: #fff;
}
.preview .dot.warm { background: #ffd166; }
.preview .dot.connect { background: #8be9d0; }
.preview .dot.follow { background: #c4b5fd; }

.aside-foot {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}
.aside-foot a { color: #fff; font-weight: 650; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.45); }
.aside-foot a:hover { border-bottom-color: #fff; }

/* ------------------------------ form column ------------------------------ */

.main { display: grid; place-items: center; padding: 44px 26px; }

.card {
  width: 100%;
  max-width: 496px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 34px 34px 28px;
}
/* The card holds exactly two things: Clerk's widget and one legal line. Clerk
   renders the heading itself ("Sign in to FocusLeads", "Check your email"…),
   so the page never stacks a second, competing title above the form. */
.card { display: grid; gap: 20px; }
#clerk { min-height: 268px; display: flex; justify-content: center; width: 100%; }
#clerk > * { width: 100%; }
/* Clerk ships a shadowed, ring-rounded card box; inside our card it looked like
   a phantom second card. Flatten it before the JS appearance even applies. */
#clerk :is(.cl-cardBox, .cl-card) {
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
/* The local-install notice should sit at its natural height, not in a 268px box. */
#clerk:has(.fallback) { min-height: 0; }

/* Clerk's own footer ("Secured by Clerk", the sign-up link) is kept, just
   quietened so it reads as a footnote rather than more form. */
#clerk .cl-footerItem,
#clerk .cl-footerPages { color: var(--ink-faint); font-size: 0.8rem; }
#clerk .cl-footerAction { color: var(--ink-soft); font-size: 0.88rem; }

.note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: center;
}
.note a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.note a:hover { color: var(--accent); }

.skeleton { display: grid; gap: 12px; width: 100%; }
.skeleton span {
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line) 40%, transparent), var(--line));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.fallback {
  border: 1px solid var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--panel-2);
}
.fallback a { color: var(--accent); font-weight: 650; text-decoration: none; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .aside { padding: 22px 24px; gap: 18px; }
  .aside-copy { max-width: none; }
  .aside-copy h2 { font-size: 1.35rem; }
  .points { gap: 9px; margin-top: 16px; }
  .preview { display: none; }
  .aside-foot { font-size: 0.78rem; }
  .main { padding: 26px 18px 44px; }
  .card { padding: 26px 22px 22px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton span { animation: none; }
}
