@import url('/workbench-theme.css');

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin-variable.woff2') format('woff2');
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: radial-gradient(ellipse at 15% 10%, rgb(156 192 79 / .055), transparent 45%), var(--background);
  color: var(--foreground);
  font: 400 var(--font-ui)/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--selection); }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 1fr);
  width: 100%;
  max-width: 1080px;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: 0 32px 100px -36px #00000050;
}
.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 34px 36px 28px;
  background: radial-gradient(ellipse at 50% 70%, rgb(153 191 68 / .09), transparent 65%), var(--glass-fill);
}
.auth-story::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--border) .65px, transparent .65px);
  background-size: 18px 18px;
  mask-image: linear-gradient(transparent 10%, #000 80%);
}
.auth-story > * { position: relative; }
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-bottom: 42px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--primary);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 7px;
}
.auth-eyebrow { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.auth-intro h2 { margin: 16px 0; font-size: clamp(32px, 3.5vw, 44px); line-height: 1.08; font-weight: 550; letter-spacing: -.055em; }
.auth-intro h2 span { color: var(--primary); }
.auth-story-description { max-width: 365px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.knowledge-map { margin: 20px -20px 8px; }
.knowledge-map > svg { display: block; width: 100%; height: auto; overflow: visible; }
.map-aura { color: var(--primary); }
.map-orbit { stroke: var(--primary); stroke-width: .6; opacity: .13; }
.map-orbit-outer { stroke-dasharray: 2 7; opacity: .2; }
.map-routes { stroke: var(--primary); stroke-width: 1; opacity: .24; }
.map-signals { stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 12 250; stroke-linecap: round; animation: connect-ideas 10s linear infinite; opacity: .75; }
.map-signals path:nth-child(2n) { stroke-dasharray: 6 180; }
.map-card rect { fill: var(--surface-solid); stroke: var(--border); stroke-width: 1; }
.map-card text { fill: var(--foreground); font: 500 12px 'Geist Variable', sans-serif; letter-spacing: -.1px; }
.map-symbol { stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.map-hub { fill: var(--surface-solid); stroke: var(--primary); stroke-opacity: .55; stroke-width: 1; }
.map-hub-symbol { stroke: var(--primary); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.map-spark { fill: var(--primary); opacity: .35; }
.auth-story-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .01em; }
.auth-story-note > span { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); opacity: .7; }
.auth-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px 48px; border-left: 1px solid var(--border); background: var(--surface-solid); }
.auth-card { width: 100%; }
.auth-entry-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 26px; background: var(--surface-tinted); color: var(--primary); border: 1px solid var(--border); border-radius: 12px; }
.auth-heading { margin-bottom: 30px; }
h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
p { margin: 0; }
.auth-description, .auth-footer, .auth-hint { color: var(--muted); }
form { display: grid; gap: 18px; }
label { display: grid; gap: 7px; font-weight: 500; }
input, button { width: 100%; min-width: 0; font: inherit; }
input:not([type='hidden']) {
  min-height: 44px;
  padding: 10px 12px;
  background: var(--surface-input);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 120ms ease;
}
input:hover { border-color: var(--muted); }
input:focus-visible { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 2px; }
input:autofill { -webkit-text-fill-color: var(--foreground); box-shadow: 0 0 0 100px var(--surface-solid) inset; }
button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  margin-top: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--action-fill);
  color: var(--action-ink);
  font-weight: 550;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}
button:hover { background: var(--action-hover); box-shadow: 0 4px 20px rgb(156 192 79 / .12); }
button > svg { transition: transform 150ms ease; }
button:hover > svg { transform: translateX(3px); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
a { color: var(--primary); text-underline-offset: 3px; }
.auth-footer { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); font-size: var(--font-meta); line-height: 1.7; }
.auth-hint { font-size: var(--font-meta); margin-top: -9px; }
.auth-error {
  margin-bottom: 20px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--error-fill);
  color: var(--error-ink);
  overflow-wrap: anywhere;
}
@media (pointer: coarse) {
  input:not([type='hidden']), button { min-height: 44px; }
}
@keyframes connect-ideas { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@media (max-width: 900px) {
  .auth-story { padding: 30px 24px 24px; }
  .auth-form-panel { padding: 40px 30px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); min-height: 620px; }
}
@media (max-width: 700px) {
  body { padding: 20px 16px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); max-width: 460px; min-height: 0; border-radius: 16px; }
  .auth-story { padding: 24px; }
  .auth-brand { margin-bottom: 26px; font-size: 14px; }
  .auth-eyebrow, .auth-story-description, .knowledge-map, .auth-story-note { display: none; }
  .auth-intro h2 { font-size: 32px; margin: 0; }
  .auth-form-panel { padding: 30px 24px; border-left: 0; border-top: 1px solid var(--border); }
  .auth-entry-icon { display: none; }
  .auth-heading { margin-bottom: 24px; }
  h1 { font-size: 24px; }
  input:not([type='hidden']) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  input, button, button > svg { transition: none; }
  .map-signals { animation: none; }
}
