/* MulchenBrand login stylesheet. Dynamic variables and institutional assets are loaded through generated.css + generated-login.js */
html,
body {
  min-height: 100vh;
}

body {
  background: linear-gradient(135deg, var(--mulchenbrand-background, #9aa4ad), #102a43) !important;
  font-family: var(--mulchenbrand-font-family), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.mulchenbrand-login-active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  padding: 2.5rem 1rem !important;
}

body.mulchenbrand-login-active .page,
body.mulchenbrand-login-active .page-center,
body.mulchenbrand-login-active .container,
body.mulchenbrand-login-active .container-tight {
  width: 100% !important;
  max-width: none !important;
}

body.mulchenbrand-login-active .mulchenbrand-native-logo-hidden,
body.mulchenbrand-login-active .mulchenbrand-native-heading-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.mulchenbrand-login-active .mulchenbrand-login-shell {
  width: var(--mulchenbrand-card-width, 520px) !important;
  max-width: calc(100vw - 2rem) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

body.mulchenbrand-login-active .card,
body.mulchenbrand-login-active .login-box,
body.mulchenbrand-login-active .page-center .card,
body.mulchenbrand-login-active .mulchenbrand-login-shell > .card,
body.mulchenbrand-login-active .mulchenbrand-login-shell > .login-box {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: var(--mulchenbrand-card-radius, 18px) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28) !important;
}

body.mulchenbrand-login-active .card-body,
body.mulchenbrand-login-active .login-box .card-body {
  width: 100% !important;
}

body.mulchenbrand-login-active form {
  max-width: min(100%, 420px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.mulchenbrand-login-active .form-control,
body.mulchenbrand-login-active .form-select,
body.mulchenbrand-login-active input[type="text"],
body.mulchenbrand-login-active input[type="password"],
body.mulchenbrand-login-active select {
  width: 100% !important;
}

body.mulchenbrand-login-active .btn-primary {
  background: var(--mulchenbrand-primary, #0f4c81) !important;
  border-color: var(--mulchenbrand-primary, #0f4c81) !important;
}

body.mulchenbrand-login-active .btn-primary:hover {
  filter: brightness(0.92);
}

body.mulchenbrand-login-active .mulchenbrand-brand-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: .4rem !important;
  color: var(--mulchenbrand-text, #1f2937) !important;
}

body.mulchenbrand-login-active .mulchenbrand-brand-outside {
  width: 100% !important;
  margin: 0 auto 1.35rem auto !important;
}

body.mulchenbrand-login-active .mulchenbrand-brand-inside {
  width: 100% !important;
  margin: .1rem auto 1.45rem auto !important;
}

body.mulchenbrand-login-active .mulchenbrand-brand-top-center .mulchenbrand-brand-logo-wrap,
body.mulchenbrand-login-active .mulchenbrand-brand-inside-card .mulchenbrand-brand-logo-wrap { justify-content: center !important; }
body.mulchenbrand-login-active .mulchenbrand-brand-top-left .mulchenbrand-brand-logo-wrap { justify-content: flex-start !important; }
body.mulchenbrand-login-active .mulchenbrand-brand-top-right .mulchenbrand-brand-logo-wrap { justify-content: flex-end !important; }

body.mulchenbrand-login-active .mulchenbrand-brand-logo-wrap {
  width: 100% !important;
  display: flex !important;
}

body.mulchenbrand-login-active .mulchenbrand-brand-top-center .mulchenbrand-brand-logo-wrap,
body.mulchenbrand-login-active .mulchenbrand-brand-inside-card .mulchenbrand-brand-logo-wrap {
  justify-content: center !important;
}

body.mulchenbrand-login-active .mulchenbrand-brand-top-left .mulchenbrand-brand-logo-wrap {
  justify-content: flex-start !important;
}

body.mulchenbrand-login-active .mulchenbrand-brand-top-right .mulchenbrand-brand-logo-wrap {
  justify-content: flex-end !important;
}

body.mulchenbrand-login-active .mulchenbrand-brand-logo {
  display: block !important;
  max-height: var(--mulchenbrand-logo-width, 96px) !important;
  max-width: min(calc(var(--mulchenbrand-logo-width, 96px) * 3), 100%) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 0 .55rem 0 !important;
}

body.mulchenbrand-login-active .mulchenbrand-brand-text {
  display: flex !important;
  flex-direction: column !important;
  gap: .18rem !important;
  max-width: min(100%, 34rem) !important;
}

body.mulchenbrand-login-active .mulchenbrand-brand-title {
  color: var(--mulchenbrand-title-color, #ffffff) !important;
  font-weight: var(--mulchenbrand-title-weight, 800) !important;
  font-style: var(--mulchenbrand-title-style, normal) !important;
  line-height: 1.16 !important;
  font-size: var(--mulchenbrand-title-size, 18px) !important;
  text-align: var(--mulchenbrand-title-text-align, center) !important;
}

body.mulchenbrand-login-active .mulchenbrand-brand-subtitle {
  color: var(--mulchenbrand-subtitle-color, #dbeafe) !important;
  font-size: calc(var(--mulchenbrand-title-size, 18px) * .72) !important;
  text-align: var(--mulchenbrand-title-text-align, center) !important;
  line-height: 1.25 !important;
}

body.mulchenbrand-login-active .mulchenbrand-login-footer {
  color: color-mix(in srgb, var(--mulchenbrand-text, #1f2937) 65%, transparent) !important;
  font-size: .76rem !important;
  margin: .85rem auto 0 auto !important;
  text-align: center !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  body.mulchenbrand-login-active {
    padding: 1.25rem .75rem !important;
  }

  body.mulchenbrand-login-active .mulchenbrand-login-shell,
  body.mulchenbrand-login-active .card,
  body.mulchenbrand-login-active .login-box,
  body.mulchenbrand-login-active .page-center .card {
    max-width: calc(100vw - 1.5rem) !important;
  }

  body.mulchenbrand-login-active .mulchenbrand-brand-logo {
    max-width: 70vw !important;
  }
}

body.mulchenbrand-login-active .mulchenbrand-auth-source-hidden,
body.mulchenbrand-login-active [data-mulchenbrand-auth-source-block='1'][aria-hidden='true'] { display: none !important; }
