/* =========================================================
   BUILT-IN SIGN-IN PAGE OVERRIDE TRIGGER
   Works only when <html> has hive-custom-signin-active
========================================================= */

.hive-custom-signin-active body {
  margin: 0 !important;
  overflow-x: hidden !important;
}

/* Hide standard Power Pages chrome on the auth page */
.hive-custom-signin-active .navbar,
.hive-custom-signin-active header,
.hive-custom-signin-active footer,
.hive-custom-signin-active .breadcrumb,
.hive-custom-signin-active .page-heading,
.hive-custom-signin-active .skip-to-content {
  display: none !important;
}

/* Let the auth page become full screen/full width */
.hive-custom-signin-active main,
.hive-custom-signin-active #content,
.hive-custom-signin-active #mainContent,
.hive-custom-signin-active .container,
.hive-custom-signin-active .row,
.hive-custom-signin-active .col-md-12,
.hive-custom-signin-active .columnBlockLayout {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove default page section spacing if Power Pages wraps the auth area */
.hive-custom-signin-active .page_section,
.hive-custom-signin-active .sectionBlockLayout,
.hive-custom-signin-active .sectionFixedStyle {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

/* Optional: prevents weird white gaps around the custom login */
.hive-custom-signin-active,
.hive-custom-signin-active body {
  background: #000000 !important;
}

/* Hide original auth content only after the Hive auth page is mounted */
.hive-custom-signin-active .hive-auth-original-content {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hive-custom-signin-active .hive-auth-custom-mounted {
  position: relative !important;
  z-index: 10 !important;
}

.hive-login-actions-single {
  justify-content: center;
}

.hive-login-actions-single .hive-login-btn {
  min-width: 220px;
}
