/* The sign-in gate: a full-screen white page over everything else. */

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: #ffffff;
}
.auth-gate-card {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
/* The logo's square is centred on the clipboard, with room on the right for
   the dust, so it carries its own margin; the negative margin takes some back. */
.auth-gate-logo { width: 140px; height: 140px; margin: -8px 0; }
.auth-gate-title { margin: 0; font-size: 1.2rem; color: var(--text); }
.auth-gate-site-note {
  margin: 0;
  width: 100%;
  padding: .55rem .75rem;
  border-radius: 10px;
  background: #ede9fe;
  color: var(--switch);
  font-size: .85rem;
  font-weight: 600;
}
.auth-gate-panel { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.auth-gate-text { margin: 0; color: var(--label); line-height: 1.45; }
.auth-gate-label {
  align-self: stretch;
  text-align: left;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--label);
  margin-bottom: -10px;
}
.auth-gate-input {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
}
.auth-gate-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15); }
.auth-gate-hint { margin: -.35rem 0 0; text-align: left; }
.auth-gate-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-gate-btn {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
}
.auth-gate-btn:hover:not(:disabled) { background: #1e293b; }
.auth-gate-btn.secondary { color: var(--text); background: #fff; border: 1px solid var(--border); }
.auth-gate-btn.secondary:hover:not(:disabled) { background: #f8fafc; }
.auth-gate-actions > .auth-gate-btn:only-child { grid-column: 1 / -1; }
/* A third full-width button would read as a third way in. This is a way out
   of a corner, so it sits under the pair as plain text. */
.auth-gate-link-btn {
  align-self: center;
  min-height: 0;
  padding: 2px 4px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--label);
  background: none;
  border: none;
  text-decoration: underline;
}
.auth-gate-link-btn:hover:not(:disabled) { color: var(--text); }
.auth-gate-link-btn:disabled { opacity: 1; color: #94a3b8; text-decoration: none; }
.auth-gate-message { margin: 0; color: var(--danger); font-size: 0.9rem; }
.auth-gate-message.info { color: var(--label); }
.auth-gate-note { margin: 6px 0 0; color: #94a3b8; font-size: 0.78rem; }
/* OH Field Tools is an XPSR app: the wordmark at the foot of the card. */
.auth-gate-brand {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.78rem;
}
.auth-gate-brand img { height: 11px; width: auto; }
