/* Street Wallet web signup. Single column, large tap targets — this is used on
   low-end phones outdoors. Colours are the design-system tokens from
   streetwalletmobileapp/tailwind.config.ts, not approximations. */
:root {
  --primary: #069ED5;
  --primary-dark: #0587b6;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --text: #000000;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --bg: #F9FAFB;
}

* { box-sizing: border-box; }

/* A class that sets `display` beats the UA stylesheet's [hidden] rule, so the
   hidden attribute silently stops working. .ghost and .btn both do this.
   Keep this rule ahead of any display-setting class. */
[hidden] { display: none !important; }

body {
  margin: 0;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;              /* 16px minimum stops iOS zooming on focus */
  line-height: 1.5;
}

.card { max-width: 420px; margin: 0 auto; }
/* Square mark (259x256) -- height alone keeps the aspect ratio, so it never stretches. */
.logo { display: block; height: 56px; width: auto; margin: 8px auto 20px; }
h1 { font-size: 1.5rem; text-align: center; margin: 0 0 4px; }
.muted { color: var(--muted); text-align: center; margin: 0 0 24px; }

/* Branded confirmation, not a grey system notice -- tinted, bordered and in
   the primary colour so "Joining X" reads as a positive match, not an alert. */
.banner {
  background: rgba(6, 158, 213, 0.08);
  border: 1px solid rgba(6, 158, 213, 0.24);
  color: var(--primary-dark);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
  text-align: center;
  font-weight: 600;
}

/* <noscript> fallback and the load-watchdog message -- neutral, not alarming
   red, since neither means something is broken for everyone, just for this
   visitor's connection or browser settings. */
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.notice a { color: var(--primary); }

.role {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.role:active { border-color: var(--primary-dark); }
.role-title { display: block; font-size: 1.125rem; font-weight: 600; }
.role-sub { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }

label { display: block; font-size: 0.875rem; font-weight: 500; margin: 16px 0 4px; }

input, select {
  width: 100%;
  min-height: 56px;             /* comfortably above the 44px tap-target floor */
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: inherit;
}
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.error { color: var(--danger); font-size: 0.8125rem; min-height: 1.2em; margin: 4px 0 0; }

button[type="submit"], .btn {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  line-height: 56px;
  cursor: pointer;
}
button[type="submit"]:active, .btn:active { background: var(--primary-dark); }
button[disabled] { opacity: 0.6; }

.ghost {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.foot { text-align: center; margin-top: 24px; }
.foot a { color: var(--primary); font-size: 0.875rem; }
