/* The few rules Bootstrap doesn't cover. Everything else is stock Bootstrap 6. */

/* Regular form buttons while the page is posting (js/forms.js). */
.btn-loading .bi { display: none; }

/* Top bar sized like the header on Bootstrap's cheatsheet example:
   a 28px title, a 30px logo and 8px above and below. */
.navbar {
  --bs-navbar-min-height: 0;
  --bs-navbar-brand-padding-y: 0;
  --bs-navbar-nav-link-padding-x: .5rem;
}

.navbar-brand {
  line-height: 1.2;
}

/* Every item in the bar 16px from the next: the links' own padding and
   nothing else, so no gap or border adds to it. */
.navbar-nav {
  --bs-nav-gap: 0;
  --bs-nav-link-padding-y: .125rem;
  --bs-nav-link-border-width: 0;
}

/* Account badge in the navbar: the user's initial in a blue circle, as tall
   as the logo. */
.avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 12px;
}

/* Footer links underline only on hover. */
footer li a {
  text-decoration: none;
}

footer li a:hover {
  text-decoration: underline;
}

/* Account pages (allauth/layouts/base.html): a narrow column, as in
   Bootstrap 6's sign-in example. */
.form-signin {
  max-width: 360px;
  padding: 1rem;
}

.form-signin-wide {
  max-width: 480px;
}

/* Login: e-mail and password joined into one block. */
.form-signin .form-floating:focus-within {
  position: relative;
  z-index: 2;
}

.login-fields input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.login-fields input[type="password"] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
