:root {
  --black: #000000;
  --ink: #f7f4ea;
  --muted: #9aa39a;
  --lime: #c5e017;
  --panel: #111111;
  --line: #2a2a2a;
  --danger: #e04f3e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--ink);
}
button, select, input { font: inherit; color: inherit; }

.landing {
  min-height: 100dvh;
  max-width: 420px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
  contain: layout style;
}

.auth-brand {
  text-align: center;
  padding: 8px 0 4px;
}
.mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}
.eyebrow {
  margin: 0;
  color: var(--lime);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}
h1 {
  margin: 6px 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  max-width: 32ch;
  margin-inline: auto;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.auth-card[hidden] { display: none; }
.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.badge-warn {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(224, 79, 62, 0.15);
  color: #f5a89d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.pin-field,
select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #050505;
  font-size: 22px;
  letter-spacing: 0.35em;
  text-align: center;
  margin-bottom: 12px;
  touch-action: manipulation;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select {
  font-size: 16px;
  letter-spacing: normal;
  text-align: left;
}
select { letter-spacing: normal; }

.btn-primary,
.btn-secondary {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  border: none;
  background: var(--lime);
  color: #000;
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-secondary {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.auth-switch {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.auth-switch.subtle { margin-top: 8px; font-size: 13px; }
.linkish {
  background: none;
  border: none;
  color: var(--lime);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.linkish.block {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.msg { min-height: 1.25em; margin: 10px 0 0; color: var(--danger); font-size: 14px; }
.ok { color: var(--lime); }
.signup-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #4a5520;
  border-radius: 10px;
  background: #101400;
}
.signup-result strong { letter-spacing: 0.2em; font-size: 22px; }

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}
.check-row input { margin-top: 3px; flex-shrink: 0; }

.selfie {
  margin: 8px auto 12px;
  width: 140px;
  height: 140px;
  border: 2px dashed var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
  overflow: hidden;
  background: #050505;
  cursor: pointer;
}
.selfie img { width: 100%; height: 100%; object-fit: cover; }

.foot {
  margin-top: auto;
  text-align: center;
  color: #6d746d;
  font-size: 12px;
  line-height: 1.45;
}
.foot p { margin: 0 0 8px; }
.foot a { color: var(--lime); text-decoration: none; font-weight: 600; }
