/* gate.css — styles for the admin login/setup shell (login.html + gate.js). Kept
   small and independent of the app's layout/components CSS so the login screen
   loads with a minimal, public stylesheet. Uses the shared palette from base.css. */

.gate-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.gate-title {
  font-size: 18px;
  font-weight: 600;
}

.gate-sub {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 4px;
}

.gate-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
}
.gate-input:focus {
  border-color: var(--accent);
}
/* 16px on phones stops iOS from auto-zooming the page when the field is focused. */
@media (max-width: 640px) {
  .gate-input { font-size: 16px; }
}

.gate-btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.gate-btn:hover:not(:disabled) {
  background: var(--accent-dim);
}
.gate-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.gate-err {
  color: var(--red);
  font-size: 13px;
}
