html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ---- Hosted sign-in pages (Account/*) ---- */

/* Centres the card both horizontally and vertically in the viewport.
   body has a 60px bottom margin, so subtract it to keep the card optically centred. */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #e9ecf3;
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 6px 24px rgba(20, 28, 56, 0.08);
  text-align: center;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 24px;
}

/* Labels read left-aligned even though the card itself is centred. */
.auth-card .form-label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.auth-card .form-control {
  border-radius: 8px;
  padding: 10px 12px;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: #3661eb;
  color: #ffffff;
  font-weight: 600;
}

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

.auth-error {
  text-align: left;
  font-size: 0.85rem;
}

.auth-message {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin-bottom: 12px;
}

/* reCAPTCHA renders a fixed 304x78 iframe. .auth-card is 380px wide with 28px side padding,
   leaving 324px, so it fits — but reserve the height so the card does not jump when Google's
   api.js finishes loading and the widget appears. */
.auth-captcha {
  display: flex;
  justify-content: center;
  min-height: 78px;
}

/* Below ~360px the card's own padding no longer leaves 304px, so scale the widget down
   rather than let it overflow the card. */
@media (max-width: 360px) {
  .auth-captcha .g-recaptcha {
    transform: scale(0.88);
    transform-origin: center;
  }
}