body.pm-login-page {
  background: #0b1118;
}

body.pm-login-page .mantine-BackgroundImage-root {
  min-height: 100vh;
  background-image: url('/static/web/custom/laser-login-background.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  position: relative;
}

body.pm-login-page .mantine-BackgroundImage-root::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(8, 15, 24, 0.16), rgba(5, 9, 15, 0.52)),
    linear-gradient(180deg, rgba(5, 9, 15, 0.18), rgba(5, 9, 15, 0.4));
  backdrop-filter: blur(2px);
}

body.pm-login-page .mantine-Container-root {
  position: relative;
  z-index: 1;
}

body.pm-login-page [data-with-border='true'] {
  min-width: min(425px, calc(100vw - 32px)) !important;
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44) !important;
  backdrop-filter: blur(18px);
}

body.pm-login-page [data-pm-auth-footer='true'],
body.pm-login-page [data-pm-admin-divider='true'],
body.pm-login-page [data-pm-email-login='true'] {
  display: none !important;
}

body.pm-login-page [data-pm-admin-form='true'] {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

body.pm-login-page [data-pm-admin-form='true'][data-pm-expanded='true'] {
  display: block;
}

body.pm-login-page [data-pm-admin-form='true'] > div:last-child {
  justify-content: flex-end !important;
}

.pm-admin-toggle {
  display: block;
  width: 100%;
  margin: 2px 0 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #526071;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}

.pm-admin-toggle:hover,
.pm-admin-toggle:focus-visible {
  color: #1f4ed8;
  text-decoration: underline;
  outline: none;
}

@media (max-width: 520px) {
  body.pm-login-page [data-with-border='true'] {
    padding: 24px !important;
    border-radius: 12px !important;
  }
}
