/* Minimal styles for pre-auth login shell (public). Full app.css loads after login. */
html,
body {
  margin: 0;
  background: #0a0c10;
  color: #e8eaed;
}

html:not(.ui-boot-ready) body > :not(#ui-gate):not(#dashboard-loader) {
  visibility: hidden;
}

html:not(.ui-boot-ready) #dashboard-loader {
  visibility: visible;
}

.ui-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0c10;
  color: #e8eaed;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.ui-gate[hidden] { display: none !important; }
.ui-gate-card {
  width: min(360px, 92vw);
  padding: 28px 24px;
  border-radius: 14px;
  background: #141820;
  border: 1px solid #2a3140;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ui-gate-brand { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #8b95a8; }
.ui-gate-title { font-size: 20px; font-weight: 650; margin-bottom: 4px; }
.ui-gate-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a3140;
  background: #0a0c10;
  color: inherit;
  font-size: 15px;
}
.ui-gate-btn {
  margin-top: 4px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.ui-gate-btn:hover { filter: brightness(1.08); }
.ui-gate-err { min-height: 18px; color: #f87171; font-size: 13px; }
body.ui-locked > :not(#ui-gate) { visibility: hidden; }

/* Dashboard boot spinner (app.css loads later; avoid white flash) */
.dashboard-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #0a0c10;
  color: #a1a1a6;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.dashboard-loader[hidden] { display: none !important; }
body:not(.dashboard-loading) .dashboard-loader { display: none !important; }
.dashboard-loader__ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(42, 171, 238, 0.18);
  border-top-color: #2aabee;
  animation: ui-boot-spin 0.75s linear infinite;
}
.dashboard-loader__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
@keyframes ui-boot-spin {
  to { transform: rotate(360deg); }
}
