/* admin/auth.css — shared layout for /admin/login, /forgot, /reset, /setup */

.auth-page {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding-block: var(--space-5);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: var(--space-5);
}

.auth-card h1 {
  font-size: var(--text-h1);
  margin-bottom: var(--space-2);
  text-align: center;
}
.auth-card .intro {
  color: var(--text-2);
  font-size: var(--text-small);
  text-align: center;
  margin-bottom: var(--space-5);
}

.auth-form {
  display: grid;
  gap: var(--space-3);
}

.auth-form .input {
  padding: 14px var(--space-3);
}

.auth-form .btn {
  width: 100%;
  margin-top: var(--space-2);
}

.auth-foot {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--text-small);
  color: var(--text-2);
}
.auth-foot a {
  color: var(--text-1);
}

/* OTP input row */
.otp-row {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin: var(--space-3) 0;
}
.otp-cell {
  width: 48px;
  height: 56px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  background: var(--bg-1);
  color: var(--text-0);
  border: 1px solid var(--bg-2);
  border-radius: var(--radius-sm);
}
.otp-cell:focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: var(--ring-focus);
}

/* TOTP setup section (used on /admin/setup) */
.totp-section {
  border-top: 1px solid var(--bg-1);
  padding-top: var(--space-5);
  margin-top: var(--space-5);
}
.totp-section h2 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
}
.totp-section p {
  color: var(--text-2);
  font-size: var(--text-small);
  margin-bottom: var(--space-3);
}
.totp-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-3);
  background: #ffffff;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.totp-secret {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--text-1);
  text-align: center;
  letter-spacing: 0.08em;
  word-break: break-all;
  margin-bottom: var(--space-3);
}

/* Hint + small links between fields */
.hint-link {
  text-align: right;
  font-size: var(--text-xs);
  margin-top: -8px;
}
.hint-link a { color: var(--text-2); }
.hint-link a:hover { color: var(--text-0); }
