/* Shared by the auth-flow pages: login.html, totp-setup.html, recover.html. */

.login-page {
  /* Centers within the viewport minus the brand bar above it, so the card still lands in the
     middle of the actual remaining space rather than being pushed visibly off-center. */
  min-height: calc(100vh - var(--brand-bar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

/* login.html only: no top-left brand-bar — instead the logo sits large, directly above the
   card, at the same width as the card itself. */
.login-page.is-branded {
  min-height: 100vh;
  flex-direction: column;
  gap: var(--space-4);
}

.login-logo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.login-card {
  width: 100%;
  max-width: 360px;
}

.login-card h1 {
  font-size: var(--text-xl);
  text-align: center;
  margin-bottom: var(--space-2);
}

.login-card .text-muted.text-sm {
  text-align: center;
}

.login-recover-link {
  text-align: center;
  margin-top: var(--space-4);
  margin-bottom: 0;
}

.login-back-link {
  text-align: center;
  margin-top: var(--space-4);
  margin-bottom: 0;
}

.form-error {
  min-height: 1.2em;
  color: var(--color-danger);
  margin: 0;
}

.form-success {
  color: var(--color-success);
}

/* TOTP setup page */

.qr-container {
  background: #fff;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-4) 0;
}

.qr-container svg {
  display: block;
  width: 200px;
  height: 200px;
}

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