/* Gate pages (design 3.20): Path tokens, no app components, 150 ms fades. */
:root {
  --accent: #e62f17;
  --accent-strong: #c83122;
  --surface: #fff;
  --surface-sunken: #f2f2f2;
  --text-primary: #333;
  --text-secondary: #6f6762;
  --error: #c83122;
  --bg: #f5f0eb;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  font:
    14px/19px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}
.brand {
  flex: 1 1 33%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 32px;
}
.brand img {
  width: 120px;
  height: auto;
}
.tagline {
  font-size: 13px;
  line-height: 17px;
  color: rgb(255 255 255 / 85%);
  text-align: center;
  max-width: 300px;
  margin: 12px 0 0;
}
main {
  flex: 1 1 50%;
  width: 300px;
  max-width: 100%;
  animation: fade 150ms ease-out;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.hidden {
  display: none !important;
}
h1 {
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 16px;
}
p {
  margin: 0 0 12px;
}
button.primary {
  display: block;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
button.secondary {
  display: block;
  width: 100%;
  height: 40px;
  border: 1px solid #fff;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font: inherit;
  margin-top: 8px;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
a {
  color: #fff;
}
.text-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}
.card {
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
}
.card a {
  color: var(--accent-strong);
}
.card input:focus-visible {
  outline-color: var(--accent);
}
label.field {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
label.field input {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 4px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-sunken);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
}
.rule {
  display: block;
  margin-top: 4px;
}
.rule.bad {
  color: var(--error);
}
label.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 17px;
}
label.check input {
  margin: 2px 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-strong);
  flex: none;
}
.error {
  background: #fff;
  color: var(--error);
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 12px;
  animation: fade 150ms ease-out;
}
.explainer {
  text-align: center;
  color: rgb(255 255 255 / 85%);
  margin-top: 8px;
}
.copy-target {
  word-break: break-all;
  font-size: 12px;
  color: var(--text-secondary);
}
footer {
  padding: 16px 0;
  font-size: 11px;
  line-height: 14px;
}
footer a {
  margin: 0 6px;
}
body.legal {
  background: var(--bg);
  color: var(--text-primary);
  display: block;
}
body.legal main {
  width: auto;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 0 48px;
}
body.legal h1 {
  text-align: left;
  font-size: 22px;
  line-height: 26px;
}
body.legal h2 {
  font-size: 16px;
  margin: 24px 0 8px;
}
body.legal a {
  color: var(--accent-strong);
}
