* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #09090d;
  color: #e2e2e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  gap: 1.5rem;
}

/* ── 2-column card ─────────────────────────────────────────────────────────── */

.sign-in-page {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  max-width: 980px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* ── Left column: welcome content ─────────────────────────────────────────── */

.col-left {
  background: #111118;
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  font-family: 'JetBrains Mono', 'SF Mono', SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #10b981;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.welcome-title {
  font-size: 1.1875rem;
  font-weight: 600;
  color: #e2e2e8;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.welcome-body {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #a1a1aa;
  flex: 1;
}

.welcome-body p {
  margin-bottom: 0.85rem;
}

.welcome-body strong {
  color: #e2e2e8;
  font-weight: 600;
}

.welcome-list {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.welcome-list li {
  margin-bottom: 0.5rem;
}

/* ── Terms row (bottom of left column) ───────────────────────────────────── */

.terms-ack {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terms-ack-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #e2e2e8;
  user-select: none;
}

.terms-ack-label input {
  width: 1rem;
  height: 1rem;
  accent-color: #6366f1;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-hint {
  font-size: 0.75rem;
  color: #52525b;
  margin-top: 0.5rem;
}

/* ── Right column: sign-in form ───────────────────────────────────────────── */

.col-right {
  background: #0d0d12;
  padding: 2.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.sign-in-header {
  text-align: center;
  width: 100%;
  transition: opacity 0.2s ease;
}

.sign-in-header.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.sign-in-kicker {
  font-family: 'JetBrains Mono', 'SF Mono', SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #10b981;
  margin-bottom: 0.35rem;
}

.sign-in-sub {
  color: #a1a1aa;
  font-size: 0.8125rem;
}

#clerk-sign-in {
  display: flex;
  justify-content: center;
  width: 100%;
}

.error-msg {
  color: #f87171;
  font-size: 0.875rem;
  text-align: center;
  width: 100%;
}

.loading-msg {
  color: #52525b;
  font-size: 0.8125rem;
}

/* ── Page footer ──────────────────────────────────────────────────────────── */

.page-footer {
  font-size: 0.75rem;
  color: #52525b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.page-footer a {
  color: #52525b;
  text-decoration: none;
}

.page-footer a:hover {
  color: #a1a1aa;
}

.page-footer-sep {
  color: #3f3f46;
}

/* also style links inside the terms checkbox label */
.terms-ack-label a {
  color: #a1a1aa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-ack-label a:hover {
  color: #e2e2e8;
}

/* ── Responsive: stack on narrow viewports ────────────────────────────────── */

@media (max-width: 740px) {
  body {
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }

  .page-footer {
    padding: 1.5rem;
    width: 100%;
  }

  .sign-in-page {
    grid-template-columns: 1fr;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    min-height: 100dvh;
  }

  .col-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 1.5rem;
  }

  .col-right {
    justify-content: flex-start;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .col-left {
    padding: 1.5rem 1.25rem;
  }

  .col-right {
    padding: 1.5rem 1.25rem;
  }

  #clerk-sign-in > * {
    width: 100% !important;
    max-width: 100% !important;
  }
}
