/* ---------------------------------------------------------------------------
   app.subulate.com — account screens.

   Same palette, type and button shape as the marketing site, so signup does not
   feel like a different product. Deliberately its own file rather than a link
   to subulate.com's stylesheet: a cross-origin CSS dependency means an outage
   or a cache mistake on the marketing site would strip the styling off the
   signup form, which is exactly the failure that already bit this project once.
--------------------------------------------------------------------------- */

:root {
  --emerald-900: #07301a;
  --emerald-800: #0b4023;
  --emerald-700: #15682f;
  --emerald-600: #1e8536;
  --green-500:   #4caf3f;
  --green-400:   #6cc24a;

  --ink:       #10211a;
  --ink-soft:  #40524a;
  --ink-faint: #6d8178;

  --rule:      #dfe8e2;
  --paper:     #ffffff;
  --paper-tint:#f4f8f4;

  --round: 14px;

  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", "Varela Round", "Nunito", var(--font-ui);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-ui);
}

a { color: var(--emerald-600); }
a:hover { color: var(--emerald-800); }

:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; border-radius: 6px; }

.site-head {
  display: flex;
  align-items: center;
  padding: 20px 22px 0;
  max-width: 640px;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-word {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, var(--green-400), var(--emerald-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── the form ─────────────────────────────────────────────────────────── */

.auth { max-width: 460px; margin: 0 auto; padding: 26px 22px 40px; text-align: center; }

.auth-mark { display: block; margin: 0 auto 12px; }

.auth h1 {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--emerald-800);
  margin: 0 0 6px;
}

.auth-sub { color: var(--ink-soft); margin: 0 0 26px; }

form { text-align: left; }

.field { margin-bottom: 18px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  font: inherit;
  /* 16px minimum: anything smaller makes iOS Safari zoom the page on focus,
     which on a phone looks like the layout breaking. */
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
input:focus { border-color: var(--green-500); }

.slug-row { display: flex; align-items: stretch; }
.slug-row input { border-radius: 10px 0 0 10px; border-right: 0; }
.slug-suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.hint { margin: 6px 0 0; font-size: 0.84rem; color: var(--ink-faint); }
.err  { margin: 6px 0 0; font-size: 0.86rem; color: #a4000f; font-weight: 600; }

.field.check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.field.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

.form-error {
  background: #fdf3f3;
  border: 1px solid #f0cdcd;
  border-left: 4px solid #c23030;
  border-radius: 0 10px 10px 0;
  padding: 13px 16px;
  margin: 0 0 20px;
  text-align: left;
  font-size: 0.92rem;
  color: #7a1420;
}

.btn {
  display: block;
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--green-500), var(--emerald-700));
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 28px;     /* ~52px tall, past the 44px touch minimum */
  border-radius: 999px;
  cursor: pointer;
}
.btn:hover { background: linear-gradient(135deg, var(--green-400), var(--emerald-800)); }

.auth-note { margin: 20px 0 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ── success ──────────────────────────────────────────────────────────── */

.kiosk-host {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px;
  margin: 0 0 22px;
  color: var(--emerald-800);
  word-break: break-all;
}

.notice {
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--round) var(--round) 0;
  padding: 16px 18px;
  text-align: left;
  margin: 0 0 20px;
}
.notice p { margin: 0 0 8px; font-size: 0.93rem; color: var(--ink-soft); }
.notice p:last-child { margin-bottom: 0; }
.notice .small { font-size: 0.85rem; color: var(--ink-faint); }

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

.auth-foot {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 22px 40px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-faint);
}
.auth-foot a { text-decoration: none; }
.auth-foot span { margin: 0 6px; }
