/* Revenant — auth pages (login, 2FA, dashboard). Shares tokens with home.css. */

.auth-stage {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

.auth-card--wide {
  max-width: 440px;
}

.auth-enroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.2rem 1.4rem;
  border: 1px solid var(--line);
  background: #fbfbfa;
}

.auth-enroll__qr {
  display: block;
  width: 160px;
  height: 160px;
  margin-bottom: 0.9rem;
  image-rendering: pixelated;
}

.auth-enroll__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--ink-dim);
  text-align: center;
}

.auth-eyebrow {
  margin: 0 0 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
}

.auth-title {
  --tracking: 0.16em; /* letter-spacing, shared with .wordmark-r so the gap after the logo matches the gap between every other letter */
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: var(--tracking);
  margin-right: calc(-1 * var(--tracking)); /* cancels the trailing letter-spacing gap after the last character, which otherwise throws off text-align: center */
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}

.auth-error {
  margin: 0 0 1.4rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(165, 60, 60, 0.4);
  background: rgba(165, 60, 60, 0.06);
  color: var(--blood-bright);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-field {
  margin-bottom: 1.2rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.auth-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  border-radius: 2px;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--blood-bright);
}

.auth-field input[autocomplete="one-time-code"] {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.2rem;
}

.auth-submit {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.4rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}

.auth-submit:hover {
  background: #2a2a2a;
}

.auth-meta {
  margin-top: 1.6rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.auth-meta a {
  color: var(--ink-dim);
}
