html,
body.auth-login-page {
  min-height: 100%;
  margin: 0;
  background: #f3f6fa;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.auth-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-shell__topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #d9e0ea;
}

.auth-shell__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #111827;
  text-decoration: none;
}

.auth-shell__brand:hover {
  color: #111827;
}

.auth-shell__brand-mark {
  width: 26px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.auth-shell__brand-mark img {
  width: 36px;
  height: 36px;
  max-width: none;
  object-fit: contain;
  transform: none;
}

.auth-shell__brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-shell__utilities {
  display: flex;
  align-items: center;
  gap: 5px;
}

.auth-shell__utility-link,
.auth-shell__icon-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  text-decoration: none;
  border-radius: 4px;
}

.auth-shell__utility-link {
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
}

.auth-shell__icon-link {
  width: 34px;
  font-size: 14px;
}

.auth-shell__utility-link:hover,
.auth-shell__icon-link:hover {
  color: #111827;
  background: #f5f6f8;
}

.auth-shell__language-toggle {
  width: 36px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #111827;
  border: 1px solid #d9e0ea;
  border-radius: 5px;
  background: #fff;
}

.auth-shell__language-toggle:hover,
.auth-shell__language-toggle:focus {
  color: #111827;
  background: #f8fafc;
  border-color: #c6cfdb;
  box-shadow: none;
}

.auth-shell__language-toggle::after {
  margin-left: 5px;
  vertical-align: middle;
}

.auth-shell__utilities .dropdown-menu {
  min-width: 128px;
  margin-top: 6px !important;
  padding: 5px;
  border: 1px solid #d9e0ea;
  border-radius: 5px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.auth-shell__utilities .dropdown-item {
  border-radius: 3px;
  padding: 7px 9px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.auth-shell__utilities .dropdown-item:hover {
  background: #f5f6f8;
  color: #111827;
}

.auth-shell__utilities .dropdown-item.active,
.auth-shell__utilities .dropdown-item:active {
  background: #111827;
  color: #fff;
}

.auth-shell__main {
  width: 100%;
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 44px 24px 64px;
}

.auth-login {
  width: min(100%, 430px);
}

.auth-login__panel {
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .035);
}

.auth-login__heading {
  padding: 24px 24px 21px;
  border-bottom: 1px solid #e3e8ef;
}

.auth-login__eyebrow {
  margin: 0 0 5px;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-login__title {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.auth-login__subtitle {
  margin: 7px 0 0;
  max-width: 38ch;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.auth-login__form {
  padding: 22px 24px 24px;
}

.auth-login__alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #f3b7b7;
  border-radius: 4px;
  background: #fff7f7;
  color: #9b1c1c;
  font-size: 13px;
  line-height: 1.4;
}

.auth-login__field {
  margin-bottom: 15px;
}

.auth-login__label {
  display: block;
  margin: 0 0 6px;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-login__field .form-control {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid #cfd7e3;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  box-shadow: none;
}

.auth-login__field .form-control::placeholder {
  color: #98a2b3;
}

.auth-login__field .form-control:hover {
  border-color: #aeb8c6;
}

.auth-login__field .form-control:focus {
  border-color: #667085;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, .08);
}

.auth-login__field .form-control.is-invalid {
  border-color: #d92d20;
  background-image: none;
}

.auth-login__field .invalid-feedback {
  margin-top: 5px;
  color: #b42318;
  font-size: 12px;
}

.auth-login__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 18px;
}

.auth-login__remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.auth-login__remember .form-check-input {
  width: 15px;
  height: 15px;
  margin: 0;
  border-color: #b8c2cf;
  border-radius: 3px;
  box-shadow: none;
}

.auth-login__remember .form-check-input:checked {
  background-color: #111827;
  border-color: #111827;
}

.auth-login__remember .form-check-input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, .08);
}

.auth-login__remember label,
.auth-login__forgot {
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
}

.auth-login__forgot {
  text-decoration: none;
  white-space: nowrap;
}

.auth-login__forgot:hover {
  color: #111827;
  text-decoration: underline;
}

.auth-login__submit {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0d0d0d;
  border-radius: 4px;
  background: #0d0d0d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.auth-login__submit:hover,
.auth-login__submit:focus {
  background: #222;
  border-color: #222;
  color: #fff;
  box-shadow: none;
}

.auth-login__register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 18px;
  color: #667085;
  font-size: 12px;
}

.auth-login__register a {
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

.auth-login__register a:hover {
  text-decoration: underline;
}

.auth-shell__footer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
}

.auth-shell__footer-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  background: #fff;
  color: #667085;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .035);
}

.auth-shell__footer-link:hover,
.auth-shell__footer-link:focus {
  color: #111827;
  border-color: #c6cfdb;
  background: #f8fafc;
  box-shadow: none;
}

@media (max-width: 640px) {
  .auth-shell__topbar {
    padding: 0 14px;
  }

  .auth-shell__utility-link,
  .auth-shell__icon-link {
    display: none;
  }

  .auth-shell__main {
    place-items: start center;
    padding: 28px 14px 84px;
  }

  .auth-login__heading,
  .auth-login__form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .auth-login__options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .auth-shell__footer {
    right: 14px;
    bottom: 14px;
  }
}
