/* fpv.cat — pantalla d'accés */
html.gate-wait #gate { visibility: hidden; }
#gate {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 1rem;
  background: var(--bg, #0d0f0b);
  color: var(--fg, #e9ecdf);
  font-family: var(--font-sans, system-ui, sans-serif);
}
.gate-card {
  width: 100%; max-width: 22rem;
  display: grid; gap: .9rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface, #161a12);
  border: 1px solid var(--line, #2a2f24);
  border-radius: var(--radius, 12px);
}
.gate-logo { height: 2rem; width: auto; justify-self: start; }
.gate-card h1 { margin: .25rem 0 0; font-size: 1.4rem; line-height: 1.2; }
.gate-sub { margin: 0; color: var(--fg-muted, #a8ae9a); font-size: .95rem; }
.gate-card label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.gate-card input:not([type=checkbox]) {
  font: inherit; font-weight: 400; padding: .7rem .8rem;
  border-radius: 8px; border: 1px solid var(--line-strong, #3b4233);
  background: var(--bg, #0d0f0b); color: inherit; min-height: 44px;
}
.gate-card input:focus-visible, .gate-card button:focus-visible {
  outline: 2px solid var(--accent, #c6f432); outline-offset: 2px;
}
.gate-card .gate-check { display: flex; gap: .5rem; align-items: center; font-weight: 400; color: var(--fg-muted, #a8ae9a); }
.gate-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent, #c6f432); }
.gate-err { margin: 0; min-height: 1.2em; color: var(--no, #ff6b5b); font-size: .9rem; }
.gate-card button {
  font: inherit; font-weight: 700; min-height: 44px; cursor: pointer;
  border: 0; border-radius: 8px;
  background: var(--accent, #c6f432); color: var(--on-accent, #0d0f0b);
}
.gate-card button:disabled { opacity: .6; cursor: progress; }
.gate-logout {
  display: inline; padding: 0; margin: 0; font: inherit; cursor: pointer;
  background: none; border: 0; color: inherit; text-decoration: underline;
}
.gate-logout:hover { color: var(--accent, inherit); }
