.message {
  font-weight: bold;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
}

.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

body {
  position: relative;
  background: url('/assets/cnc_bg.jpg?v=1.7') no-repeat center center/cover !important;
  min-height: 100vh;
  min-height: 100svh;
  height: auto !important;
  box-sizing: border-box;
  padding: 2rem 1rem 4rem;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0;
}

.login-containers {
  width: min(475px, calc(100vw - 2rem));
  box-sizing: border-box;
  max-width: 475px !important;
  min-width: 0 !important;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-containers .btn.text-white:not(.bg-color) {
  color: inherit !important;
}

.message-container {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  z-index: 1000;
}

.form-check {
  display: inline-flex;
  align-items: center;
}

.form-check-input {
  width: 1em;
  height: 1em;
  margin: 0;
  margin-right: 0.5rem;
}

.form-check-label {
  margin-bottom: 0;
  line-height: 1.2;
}

.footer-links,
.footer-copyright {
  position: absolute;
  font-size: 12px;
  color: #fff;
}

.footer-links {
  bottom: 1px;
  left: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin-right: 5px;
}

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

.footer-copyright {
  bottom: 1px;
  right: 10px;
  text-shadow: 0 1px 2px #000;
}

@media (max-width: 575.98px) {
  .login-containers h1 {
    font-size: 26px;
    overflow-wrap: anywhere;
  }
  .footer-links,
  .footer-copyright {
    position: absolute;
    left: 10px;
    right: 10px;
    text-align: center;
  }
  .footer-links {
    bottom: 22px;
  }
}
