html {
  font-size: 14px;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.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;
}

.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;
}

/* Toast system used only by the login/auth pages (see wwwroot/js/notifications.js). The
   authenticated app shell uses TF.notify + Hesba.css instead. */
.notify-wrap {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100% - 32px);
}

.notify {
  min-width: 300px;
  max-width: 380px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: notifyIn .22s ease;
  border-inline-start: 4px solid var(--bs-secondary-color);
}

@keyframes notifyIn {
  from { opacity: 0; transform: translateY(-8px); }
}

.notify.success { border-inline-start-color: #16a34a; }
.notify.error   { border-inline-start-color: #dc2626; }
.notify.warning { border-inline-start-color: #d97706; }
.notify.info    { border-inline-start-color: var(--accent-color); }

.notify .ic { font-size: 20px; line-height: 1; margin-top: 2px; }
.notify.success .ic { color: #16a34a; }
.notify.error .ic   { color: #dc2626; }
.notify.warning .ic { color: #d97706; }
.notify.info .ic    { color: var(--accent-color); }

.notify .msg { flex: 1; font-size: 13px; }
.notify .msg b { display: block; margin-bottom: 1px; }
.notify .close-btn { border: none; background: none; color: var(--bs-secondary-color); font-size: 15px; cursor: pointer; padding: 0; line-height: 1; }