html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
}

.auth-centered {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem 2rem;
  background-image: var(--auth-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-centered.auth-centered--plain {
  background-image: none;
  background-color: var(--auth-bg-color, #31333f);
}

.auth-centered.auth-centered--plain .auth-centered__shade {
  display: none;
}

.auth-centered__shade {
  position: absolute;
  inset: 0;
  background: var(--auth-bg-overlay, rgba(49, 51, 63, 0.76));
  pointer-events: none;
}

.auth-centered__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.75rem 1.5rem;
}

.auth-centered .logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth-centered .logo-wrap img {
  max-height: 72px;
  width: auto;
  max-width: 260px;
}

.auth-centered .form-control {
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.auth-centered .btn-primary {
  border-radius: 10px;
  font-weight: 700;
  padding: 0.8rem 1rem;
}

.auth-centered .password-field {
  position: relative;
}

.auth-centered .password-field .has-toggle {
  padding-right: 2.8rem;
}

.auth-centered .password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0.4rem;
  line-height: 1;
}

.auth-centered__credit {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 24px);
}

.auth-photo-credit {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  opacity: 1;
}

.auth-photo-credit--on-dark {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.45);
}

.auth-photo-credit--on-light {
  color: #111;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.92), 0 0 10px rgba(255, 255, 255, 0.55);
}

.auth-photo-credit a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-photo-credit a:hover {
  opacity: 0.88;
}

@media (max-width: 576px) {
  .auth-centered {
    padding: 4rem 0.75rem 1.25rem;
    align-items: flex-start;
  }

  .auth-centered__card {
    margin-top: 0.5rem;
    padding: 1.5rem 1.15rem 1.15rem;
  }

  .auth-centered .logo-wrap img {
    max-height: 56px;
  }
}
