/* Palette lifted from the app's dark onboarding theme (inkbase/app/(auth)/onboardingTheme.ts)
   so the website and the app read as the same product. Values are copied deliberately rather
   than imported -- this site is a plain static build with no toolchain. If the app's palette
   changes, change it here too. */
:root {
  --page-bg: #0b0b0c;
  --card-bg: #111113;
  --card-border: rgba(255, 255, 255, 0.09);
  --title: #fafafa;
  --sub: #86868a;
  --label: #b6b6ba;
  --muted: #86868a;
  --input-bg: #161618;
  --input-border: rgba(255, 255, 255, 0.10);
  --input-text: #fafafa;
  --placeholder: #6a6a6d;
  --accent: #fafafa;
  --on-accent: #0b0b0c;
  --divider: rgba(255, 255, 255, 0.10);
  --footnote: rgba(255, 255, 255, 0.30);
  --success: #5fd08a;
  --error: #ef4444;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--title);
  font-family: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; flex-direction: column; min-height: 100vh; }

.topbar { padding: 20px 32px 8px; }

.wordmark {
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 600;
  color: var(--title);
  text-decoration: none;
  letter-spacing: -0.2px;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}

/* Narrow for forms, wide for documents. */
.card {
  width: 100%;
  max-width: 460px;
  align-self: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
}
.card.doc { max-width: 760px; }

h1 {
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 6px;
  color: var(--title);
}

p { margin: 0 0 12px; color: var(--label); }
.sub { color: var(--sub); margin-bottom: 22px; }
.muted { color: var(--muted); font-size: 13px; }
a { color: var(--title); }

ul { margin: 0 0 12px; padding-left: 20px; color: var(--label); }
li { margin-bottom: 6px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--label);
  margin-bottom: 6px;
}

input[type="password"], input[type="email"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  margin-bottom: 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: var(--input-text);
  font-family: inherit;
  font-size: 15px;
}
input::placeholder { color: var(--placeholder); }
input:focus { outline: none; border-color: rgba(255, 255, 255, 0.28); }

button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button:disabled { opacity: 0.55; cursor: default; }

/* Notices. `.notice` is neutral by design -- the same reasoning as the app's noticeBg:
   an informational message is not a failure and should not be dressed as one. */
.notice, .error, .success {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.notice  { background: rgba(255, 255, 255, 0.06); color: var(--label); }
.error   { background: rgba(239, 68, 68, 0.10);  border: 1px solid rgba(239, 68, 68, 0.35);  color: #fca5a5; }
.success { background: rgba(95, 208, 138, 0.10); border: 1px solid rgba(95, 208, 138, 0.35); color: var(--success); }

.hint { font-size: 13px; color: var(--muted); margin: -6px 0 16px; }

footer {
  padding: 20px 32px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--footnote);
}
footer a { color: var(--footnote); text-decoration: none; margin-right: 14px; }
footer a:hover { color: var(--sub); }

[hidden] { display: none !important; }

@media (max-width: 520px) {
  .topbar { padding: 16px 20px 4px; }
  main { padding: 16px 14px 36px; }
  .card { padding: 22px 18px; }
  h1 { font-size: 26px; }
  footer { padding: 16px 20px 24px; }
}
