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;
  background-color: #e0e0e0 !important;
}

/* Reusable card style for forms (slightly darker than page background) */
.form-card {
  background-color: #6c757d; /* dark gray for strong contrast */
  border: 1px solid #5a6268;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.form-card .form-label,
.form-card label {
  color: #ffffff; /* white labels over dark background */
}

/* Footer link area beneath forms */
.form-footer {
  margin-top: 1rem;
  text-align: center;
}
.form-link {
  color: #0d6efd;
  text-decoration: underline;
  font-weight: 500;
}
.form-link:hover, .form-link:focus {
  color: #0b5ed7;
  text-decoration-thickness: 2px;
}
/* When placed on dark cards, flip to white for contrast */
.form-card .form-link {
  color: #ffffff;
}
.form-card .form-link:hover, .form-card .form-link:focus {
  color: #f8f9fa;
}

/* Alerts over dark forms */
.form-alert {
  margin-top: 0.5rem;
}
.form-card .alert-warning.form-alert {
  background-color: #ffe08a; /* softer yellow */
  color: #604400; /* dark text */
  border-color: #ffd45a;
}
/* High-contrast danger alert inside dark forms: white box with red border/text */
.form-card .alert-danger.form-alert {
  background-color: #ffffff;
  color: #b00020;
  border-color: #dc3545;
}

/* Stronger contrast for field validation errors on dark form cards */
.form-card .field-validation-error,
.form-card .text-danger {
  color: #ffffff !important; /* white for strong contrast on dark card */
}

/* (tooltip-error styles removed as tooltip was reverted) */

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}