/* ==========================================================================
   Long/Short Terminal - auth pages (login.html / signup.html)
   Shares the landing "Tearsheet" design language: blueprint-grid texture,
   Geist type, squared geometry, editorial mono coordinates, green used
   strictly as a functional accent. Zero grey text. Self-hosted fonts.
   Split layout: brand/value aside + auth card. Stacks on narrow screens.
   ========================================================================== */

/* ---- Self-hosted faces (same as landing) --------------------------------- */
@font-face { font-family:"Geist"; font-style:normal; font-weight:100 900; font-display:swap; src:url("/assets/fonts/geist-sans.woff2") format("woff2"); }
@font-face { font-family:"Geist Mono"; font-style:normal; font-weight:100 900; font-display:swap; src:url("/assets/fonts/geist-mono.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg:      #08080b;
  --bg-1:    #0d0e12;
  --bg-2:    #12141a;
  --line:    #1b1d24;
  --line-2:  #2b2e39;
  --grid:    rgba(122,142,176,0.05);
  --head:    #f4f6fa;
  --body:    #c8ccd4;
  --data:    #e6e8ee;
  --up:      #2a7a4d;
  --up-br:   #4db380;
  --up-lbl:  #63cf97;
  --sans: "Geist", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 3px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-color: var(--line-2) var(--bg);
  position: relative;
  overflow-x: hidden;
}
/* Fixed blueprint grid - identical texture to the landing hero. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 30% 0%, #000 35%, transparent 90%);
          mask-image: radial-gradient(ellipse 120% 90% at 30% 0%, #000 35%, transparent 90%);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
a { color: inherit; text-decoration: none; }

/* ---- Split shell --------------------------------------------------------- */
.auth {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Left: brand + value ------------------------------------------------- */
.auth-aside {
  display: flex; flex-direction: column;
  padding: clamp(40px, 7vh, 88px) clamp(28px, 4vw, 64px);
  border-right: 1px solid var(--line);
}
.auth-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--head);
}
.auth-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up-br); box-shadow: 0 0 10px 1px rgba(77,179,128,0.7);
}
.auth-brand .tm { color: var(--head); opacity: 1; }
.auth-kicker {
  margin-top: clamp(36px, 8vh, 72px);
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--up-lbl);
  display: inline-flex; align-items: center; gap: 10px;
}
.auth-kicker::before { content: ""; width: 24px; height: 2px; background: var(--up-br); display: inline-block; }
.auth-head {
  margin: 18px 0 0;
  color: var(--head);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.06; font-weight: 720; letter-spacing: -0.03em;
  max-width: 12ch;
}
.auth-points { list-style: none; margin: 28px 0 0; padding: 0; }
.auth-points li {
  position: relative;
  padding: 9px 0 9px 26px;
  color: var(--data);
  font-size: 15px;
  border-top: 1px solid var(--line);
}
.auth-points li:first-child { border-top: none; }
.auth-points li::before {
  content: "+";
  position: absolute; left: 0; top: 9px;
  font-family: var(--mono); font-weight: 700;
  color: var(--up-lbl);
}
.auth-foot {
  margin-top: auto; padding-top: 40px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--body);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.auth-foot .g { color: var(--up-lbl); font-weight: 600; }

/* ---- Right: auth card ---------------------------------------------------- */
.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(40px, 7vh, 88px) clamp(24px, 4vw, 56px);
}
.auth-card {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  /* solid green top-rule - same signature as the landing Pro price card */
  box-shadow: inset 0 2px 0 0 var(--up-br), 0 24px 60px -30px rgba(0,0,0,0.9);
  padding: 34px clamp(24px, 3.5vw, 38px) 30px;
}
.auth-coord {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--up-lbl);
  padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.auth-coord .r { color: var(--body); letter-spacing: 0.1em; }
.auth-title {
  margin: 0; color: var(--head);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.auth-sub { margin: 8px 0 22px; color: var(--body); font-size: 14px; }

/* Clerk mounts here - most styling is via the JS `appearance` object, but a
   few container-level rules keep the widget flush inside our card. The
   width/box overrides are a SAFETY NET for the v6 `cardBox` wrapper, which
   otherwise carries a fixed width + shadow and overflows our narrower card. */
#clerk-auth { width: 100%; }
#clerk-auth .cl-rootBox,
#clerk-auth .cl-cardBox,
#clerk-auth .cl-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

.auth-back { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.auth-back a { color: var(--body); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }
.auth-back a:hover { color: var(--head); }

/* ---- Responsive: stack, aside becomes a compact header ------------------- */
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; max-width: 560px; align-content: start; }
  .auth-aside {
    border-right: none; border-bottom: 1px solid var(--line);
    padding: clamp(32px, 5vh, 48px) clamp(24px, 6vw, 40px) 30px;
  }
  .auth-kicker { margin-top: 26px; }
  .auth-head { max-width: none; }
  .auth-points { display: none; }        /* keep the mobile card the focus */
  .auth-foot { display: none; }
  .auth-main { padding: 28px clamp(24px, 6vw, 40px) 48px; }
}
@media (max-width: 460px) {
  .auth-card { padding: 26px 20px 24px; box-shadow: inset 0 2px 0 0 var(--up-br); }
}
