/* The sign-in pages (Issue 112): one narrow card in the middle of the page, on the
 * ops.css family and the shared tokens. Light and dark come from tokens.css; nothing
 * here needs script. */

body.auth-page .logs-shell {
  width: min(100% - 2 * var(--shell-pad-x), 28rem);
}

.auth-header {
  margin-bottom: 1.5rem;
}

.ops-page .auth-header__brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.ops-page .auth-header__brand:hover {
  color: var(--ink);
}

.auth-header__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-column {
  display: grid;
  gap: 1rem;
}

.auth-card {
  margin-bottom: 0;
  padding: clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
  box-shadow: var(--shadow-md);
}

.auth-card__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.auth-card__code {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.auth-card .ops-note {
  margin-bottom: 1rem;
}

.auth-card__submit {
  width: 100%;
}

.auth-card__aside {
  margin-top: 1rem;
}

.auth-foot {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
}

/* Facts an invitation offers, shown read-only above its form (Issue 113). */
.auth-card__facts {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-textarea {
  min-height: 6rem;
  resize: vertical;
}

/* ---------------------------------------------------------- two-step sign-in */

.auth-code {
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
}

.auth-disclosure {
  padding: 0.6rem 0.85rem;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-disclosure summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

.auth-disclosure[open] summary {
  margin-bottom: 0.75rem;
}

.mfa-qr {
  width: min(100%, 14rem);
  margin: 0 0 1rem;
  padding: 0.75rem;
  line-height: 0;
  background: var(--qr-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mfa-qr__svg {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--qr-ink);
}

.mfa-secret code,
.mfa-codes code {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.mfa-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}
