/* Auth pages (sign in / sign up) — same system as landing.css:
   ink/paper/accent palette, Instrument Serif display, Inter body,
   soft shadows, hairlines, grain, one soft blob. */
:root {
  --ink: #191b23;
  --ink-2: #454854;
  --paper: #fbfbf9;
  --card: #ffffff;
  --accent: #4f46e5;
  --accent-dark: #3f3ac4;
  --accent-soft: #eceafd;
  --hairline: rgba(25, 27, 35, .08);
  --muted: #6b6e7b;
  --error-bg: #fdf1f0;
  --error-ink: #a1352c;
  --radius: 28px;
  --shadow-2: 0 2px 4px rgba(25,27,35,.05), 0 18px 48px rgba(25,27,35,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .auth-card, .mock-float { animation: none !important; transition: none !important; }
}
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* grain — same texture as landing */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .05; z-index: 90;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-bg { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 20px; overflow: hidden; }
.blob { position: absolute; pointer-events: none; color: var(--accent-soft); }
.blob-a { width: 560px; top: -240px; right: -180px; color: #e6f4ef; opacity: .9; }
.blob-b { width: 380px; bottom: -180px; left: -140px; opacity: .55; }

/* ---------- top strip ---------- */
.top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; z-index: 2; }
.logo { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.logo-dot { color: var(--accent); }

/* brand lockup: bulb mark + wordmark (matches the app theme) */
.logo-lockup { display: inline-flex; align-items: center; gap: .45rem;
  text-decoration: none; color: var(--ink); }
.logo-lockup .logo-mark { width: 28px; height: 28px; flex: none;
  --logo-ink: var(--ink); --logo-accent: var(--accent); }
.logo-lockup .logo-word { font-weight: 800; font-size: 1.22rem;
  letter-spacing: -.03em; line-height: 1; }
.top-link { font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.top-link:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- card ---------- */
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 30rem;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 36px 34px 30px;
}
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h1 { font: 400 2.1rem/1.1 "Instrument Serif", Georgia, serif; margin: 0 0 8px; }
.lede { color: var(--ink-2); font-size: .97rem; margin: 0 0 22px; }

/* ---------- form ---------- */
form { margin: 0; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 16px 0 6px; }
input {
  display: block; width: 100%;
  padding: 11px 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:hover { border-color: rgba(25,27,35,.2); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--card); color: var(--ink); padding: .5rem 1rem; z-index: 100; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
.hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .name-row { grid-template-columns: 1fr; } }

button.primary, .btn-primary {
  display: block; width: 100%; margin-top: 24px; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 22px; font: inherit; font-weight: 600; font-size: 1rem;
  box-shadow: 0 1px 2px rgba(79,70,229,.3), 0 6px 16px rgba(79,70,229,.25);
  transition: background .15s, transform .15s, box-shadow .15s;
}
button.primary:hover, .btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(79,70,229,.32), 0 10px 24px rgba(79,70,229,.3); }
button.primary:active { transform: translateY(0); }
button.primary:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- error ---------- */
p.error {
  background: var(--error-bg); color: var(--error-ink);
  border: 1px solid rgba(161,53,44,.18);
  border-radius: 14px; padding: 12px 14px; font-size: .92rem;
  margin: 0 0 4px;
}

/* ---------- switch link ---------- */
.switch { text-align: center; color: var(--muted); font-size: .93rem; margin: 22px 0 0; }
.switch a { color: var(--accent-dark); font-weight: 600; text-decoration: none; position: relative; }
.switch a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.switch a:hover::after { transform: scaleX(1); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; text-align: center; padding: 18px; }
.foot p { color: var(--muted); font-size: .8rem; margin: 0; }
.foot a { color: var(--muted); }