:root {
  --wm-green-500: #39b54a;
  --wm-green-600: #2ca043;
  --wm-green-700: #0f8a49;
  --wm-blue-500: #1190df;
  --wm-blue-600: #0c66c3;
  --wm-blue-700: #0a4ea8;
  --wm-teal-600: #0b7f7c;
  --wm-bg-soft: #f3f8fc;
  --wm-text-default: #103a7a;
  --wm-primary: var(--wm-blue-600);
  --wm-primary-hover: var(--wm-blue-700);
  --wm-link: var(--wm-blue-600);
  --wm-link-hover: var(--wm-green-600);
}

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 rgba(17, 144, 223, 0.35);
}

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

body {
  margin-bottom: 60px;
  background-color: var(--wm-bg-soft);
  color: var(--wm-text-default);
}

a {
  color: var(--wm-link);
}

a:hover,
a:focus {
  color: var(--wm-link-hover);
}

.btn-primary {
  color: #fff;
  background-color: var(--wm-primary);
  border-color: var(--wm-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: var(--wm-primary-hover);
  border-color: var(--wm-primary-hover);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: var(--wm-primary);
  border-color: var(--wm-primary);
}

.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;
}

body.wm-modal-open {
  overflow: hidden;
}

.wm-confirm-modal {
  display: none;
}

.wm-confirm-modal.is-open {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: block;
}

.wm-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 25, 54, 0.52);
}

.wm-confirm-modal__dialog {
  position: relative;
  max-width: 520px;
  margin: 12vh auto 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(12, 102, 195, 0.24);
  box-shadow: 0 20px 48px rgba(10, 78, 168, 0.22);
  padding: 1rem 1.1rem;
}

body.wm-keyboard-open .wm-confirm-modal__dialog {
  margin-top: 1rem;
  max-height: calc(100vh - var(--wm-keyboard-offset, 0px) - 1.5rem);
  overflow: auto;
}

.wm-confirm-modal__title {
  margin: 0 0 0.5rem;
  color: var(--wm-blue-700);
}

.wm-confirm-modal__message {
  margin: 0;
  color: var(--wm-text-default);
}

.wm-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.wm-confirm-modal__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}

body.wm-keyboard-open .wm-login-wrapper {
  align-items: flex-start;
  padding-top: 0.8rem;
  padding-bottom: calc(0.8rem + var(--wm-keyboard-offset, 0px));
}

body.wm-keyboard-open .wm-login-card {
  max-height: calc(100vh - var(--wm-keyboard-offset, 0px) - 1.6rem);
  overflow: auto;
}

.wm-toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  display: grid;
  gap: 0.5rem;
}

.wm-toast {
  min-width: 220px;
  max-width: 360px;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: #fff;
  background: var(--wm-blue-600);
  box-shadow: 0 10px 26px rgba(12, 102, 195, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wm-toast.wm-toast--info {
  background: var(--wm-blue-600);
}

.wm-toast.wm-toast--success {
  background: var(--wm-green-600);
}

.wm-toast.wm-toast--error {
  background: #c62828;
}

.wm-toast.is-exit {
  opacity: 0;
  transform: translateY(6px);
}