/* Login page + gate styles. New apps load this via /hub/shared/auth-gate.js. */
.oa-badge {
  position: fixed; right: 12px; bottom: 12px; z-index: 9999;
  display: flex; gap: 0.5rem; align-items: center;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  background: rgba(255, 253, 248, 0.95); border: 1px solid #e7e0d5; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
  font: 500 13px "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; color: #1c1917;
}
.oa-badge .oa-link { color: #0f766e; text-decoration: none; }
.oa-badge .oa-name { color: #78716c; }
/* Stay clear of notches / the iOS home indicator. On phones: compact pill (no name, smaller padding) so it covers
   as little as possible. An app that wants it out of the way entirely can put it in the page flow, e.g.
   `body > .oa-badge { position: static; }` (an app can do this). */
.oa-badge { right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 24px); }
@media (max-width: 600px) {
  .oa-badge {
    right: calc(8px + env(safe-area-inset-right, 0px)); bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 0.35rem; padding: 0.2rem 0.25rem 0.2rem 0.6rem; font-size: 12px; box-shadow: 0 4px 14px rgba(28, 25, 23, 0.08);
  }
  .oa-badge .oa-name { display: none; }
  .oa-badge .oa-btn { padding: 0.12rem 0.55rem; }
}
.oa-btn {
  font: inherit; cursor: pointer; border: 1px solid #e7e0d5; background: #fff;
  border-radius: 999px; padding: 0.2rem 0.7rem; color: #1c1917;
}
.oa-btn:hover { border-color: #0f766e; color: #0f766e; }
.oa-denied {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%), #f4f1ea;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; color: #1c1917;
}
.oa-card {
  width: min(420px, 100%); background: #fffdf8; border: 1px solid #e7e0d5; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.06); padding: 1.5rem;
}
.oa-card h1 { margin: 0 0 0.5rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.oa-card p { margin: 0.4rem 0; line-height: 1.45; }
.oa-card a { color: #0f766e; }
.oa-form[hidden] { display: none; }
.oa-form { display: grid; gap: 0.75rem; margin-top: 1rem; }
.oa-form label { display: grid; gap: 0.3rem; font-size: 0.9rem; color: #57534e; }
.oa-form input[type=text], .oa-form input[type=password], .oa-form input[inputmode=numeric] {
  font: inherit; font-size: 1rem; padding: 0.6rem 0.75rem; border: 1px solid #e7e0d5; border-radius: 10px; background: #fff; color: #1c1917;
}
.oa-form input:focus { outline: 2px solid #ccfbf1; border-color: #0f766e; }
.oa-code { letter-spacing: 0.4em; text-align: center; font-size: 1.4rem !important; }
.oa-check { display: flex !important; grid-auto-flow: column; align-items: center; gap: 0.5rem !important; }
.oa-primary {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 10px;
  padding: 0.65rem 1rem; background: #0f766e; color: #fff;
}
.oa-primary:disabled { opacity: 0.6; cursor: default; }
.oa-secondary { font: inherit; cursor: pointer; background: none; border: 0; color: #0f766e; padding: 0; }
.oa-secondary:disabled { color: #a8a29e; cursor: default; }
.oa-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.oa-status { min-height: 1.3em; font-size: 0.9rem; color: #78716c; }
.oa-status.error { color: #b91c1c; }
.oa-muted { color: #78716c; font-size: 0.9rem; }
.oa-accent { color: #0f766e; }
