/*
 * Ring's own pages over and before the app: the frame a mail's approval page opens in (fc-approvals.js), with its way
 * out, and the wait before WorkOS on /login. Loaded last of the four stylesheets (client/index.html).
 */

/* The approval app has its own kit styles inside this isolated frame. */
.fc-approval-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2147483000;
}
/* The way out of a frame whose page did not draw itself (fc-approvals.js): one button over the frame, at the top. */
.fc-approval-way-out {
  position: fixed;
  top: 1rem;
  left: 50%;
  translate: -50% 0;
  z-index: 2147483001;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(239, 235, 225, 0.25);
  background: #0b0b0b;
  color: #efebe1;
  font-size: 0.875rem;
}
.fc-approval-way-out:hover {
  background: #2b2b2b;
}
.fc-approval-way-out:focus-visible {
  outline: 2px solid #efebe1;
  outline-offset: 2px;
}

/* The step before WorkOS on /login: the whole page is the wait. Logo (the one red thing), a Nohemi line, one sentence and
 * a quiet ring turning; nothing to click, since the browser is already on its way. */
.ring-signin {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--surface-primary);
  color: var(--text-primary);
}
.ring-signin__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 24rem;
  text-align: center;
  animation: ring-signin-in 0.4s ease-out both;
}
.ring-signin__logo {
  height: 2.75rem;
  width: auto;
  margin-bottom: 1.25rem;
}
.ring-signin__logo--dark { display: none; }
.dark .ring-signin__logo--light { display: none; }
.dark .ring-signin__logo--dark { display: block; }
.ring-signin__title {
  margin: 0;
  font-family: "Nohemi", "Manrope", sans-serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.ring-signin__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.ring-signin__spinner {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 1rem;
  border-radius: 9999px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--text-primary);
  animation: ring-signin-turn 0.9s linear infinite;
}
@keyframes ring-signin-turn {
  to { transform: rotate(360deg); }
}
@keyframes ring-signin-in {
  from { opacity: 0; transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .ring-signin__panel { animation: none; }
  .ring-signin__spinner { animation-duration: 2.4s; }
}
