/* Devise auth pages (app/views/layouts/auth.html.erb). Uses the .centered body
   archetype from application.css; only the auth card widgets are here. Form
   controls use Bootstrap's defaults, CTAs are plain .btn-primary (plum). */
.auth-card {
  width: 100%;
  max-width: 26rem;
  background: var(--nv-bg);
  border: 1px solid var(--nv-border);
  border-radius: 1rem;
  padding: 2.25rem;
  box-shadow: 0 12px 40px rgba(var(--bs-black-rgb), 0.08);
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-logo {
  display: block;
  width: fit-content;
  margin: 0 auto 0.75rem;
}

.auth-logo img {
  width: 140px;
  display: block;
}

.auth-subtitle {
  text-align: center;
  color: var(--nv-muted);
  margin: 0.25rem 0 1.75rem;
}

/* Label + inline hint pair: wraps as one unit — without this, the hint
   wrapping to its own line exposes the label's margin-bottom mid-block. */
.form-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.form-label-row .form-label,
.form-label-row .form-text {
  margin: 0;
}

.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.auth-links a {
  color: var(--nv-accent);
  text-decoration: none;
  /* the devise links stack with <br>; give the rows breathing room */
  display: inline-block;
  margin: 0.3rem 0;
}

.auth-links a:hover { text-decoration: underline; }

/* button_to renders a form + button — dress it up as one of the quiet links */
.auth-links form { display: inline; }

.auth-locale-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: var(--nv-accent);
  cursor: pointer;
  /* same breathing room as the .auth-links anchors */
  margin: 0.3rem 0;
}

.auth-locale-link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
}
