.acls-login-page,
.acls-login-page * {
  box-sizing: border-box;
}

body.login.acls-enabled {
  min-width: 0;
}

.acls-login-page {
  display: none;
}

body.acls-ready {
  margin: 0;
  background: var(--acls-main-bg, #f8f7fc);
  color: var(--acls-text, #211a32);
  font-family: var(--acls-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

body.acls-ready .acls-login-page {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  padding: 32px;
  isolation: isolate;
}

.acls-page-background,
.acls-page-overlay {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}

.acls-page-background {
  background: var(--acls-page-bg, #f5f1ff);
  background-position: var(--acls-bg-position, center center);
  background-repeat: no-repeat;
  background-size: cover;
}

.acls-page-overlay {
  z-index: -1;
  background: var(--acls-overlay, #1e103d);
  opacity: var(--acls-overlay-opacity, 0);
}

.acls-live-stage {
  position: relative;
  display: flex;
  width: min(100%, var(--acls-max-width, 1180px));
  min-height: min(var(--acls-min-height, 720px), calc(100vh - 64px));
  overflow: hidden;
  border-radius: 30px;
  background: var(--acls-main-bg, #f8f7fc);
  box-shadow: 0 30px 80px rgba(20, 10, 45, 0.22);
}

.acls-live-zone {
  display: flex;
  min-width: 0;
}

.acls-zone-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.acls-live-side {
  flex: 0 0 var(--acls-side-width, 46%);
  background: var(--acls-side-bg, #6d45f5);
  color: var(--acls-side-text, #fff);
}

.acls-live-side .acls-zone-inner {
  padding: var(--acls-side-padding, 64px);
}

.acls-live-main {
  flex: 1;
  background: var(--acls-main-bg, #f8f7fc);
}

.acls-live-main .acls-zone-inner {
  align-items: center;
  padding: var(--acls-main-padding, 56px);
}

.acls-layout-split-right .acls-live-side {
  order: 2;
}

.acls-layout-split-right .acls-live-main {
  order: 1;
}

.acls-layout-center .acls-live-stage {
  width: min(100%, 680px);
}

.acls-layout-center .acls-live-main .acls-zone-inner {
  min-height: min(var(--acls-min-height, 720px), calc(100vh - 64px));
}

/* Full canvas is the default: both halves become the actual viewport rather
   than a card floating over the page background. */
body.acls-ready .acls-login-page.acls-canvas-full {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.acls-canvas-full .acls-live-stage,
.acls-layout-center.acls-canvas-full .acls-live-stage {
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

.acls-layout-center.acls-canvas-full .acls-live-main .acls-zone-inner {
  min-height: 100vh;
}

.acls-live-block {
  position: relative;
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.55;
}

.acls-live-side .acls-live-block {
  margin-right: 0;
  margin-left: 0;
}

.acls-live-block h1,
.acls-live-block h2,
.acls-live-block h3,
.acls-live-block h4,
.acls-live-block p {
  margin-top: 0;
  color: inherit;
  font: inherit;
}

.acls-live-block h1,
.acls-live-block h2,
.acls-live-block h3,
.acls-live-block h4 {
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.acls-live-block p:last-child {
  margin-bottom: 0;
}

.acls-live-block img {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 100% !important;
  vertical-align: middle;
}

/* Keep the saved media width authoritative even when another login plugin
   applies broad !important image rules. */
.acls-live-block .acls-designed-image,
.acls-live-block .acls-site-logo {
  width: var(--acls-media-width, auto) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
}

.acls-site-logo-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.acls-site-logo {
  display: block;
}

.acls-site-wordmark {
  display: inline-block;
  color: inherit;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.acls-icon,
.acls-badge,
.acls-callout-icon,
.acls-list-icon,
.acls-social-links a {
  --acls-icon-cut: #fff;
}

.acls-icon svg,
.acls-badge svg,
.acls-callout-icon svg,
.acls-list-icon svg,
.acls-social-links svg {
  display: block;
  width: 1em;
  height: 1em;
  overflow: visible;
  fill: currentColor;
}

.acls-svg-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acls-svg-cut {
  fill: none;
  stroke: var(--acls-icon-cut, #fff);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acls-svg-cut-fill {
  fill: var(--acls-icon-cut, #fff);
}

.acls-icon {
  display: inline-grid;
  place-items: center;
}

.acls-icon svg {
  width: 52%;
  height: 52%;
}

.acls-icon-circle,
.acls-icon-rounded,
.acls-icon-square {
  background: currentColor;
  color: inherit;
}

.acls-icon-circle {
  border-radius: 50%;
}

.acls-icon-rounded {
  border-radius: 24%;
}

.acls-icon-circle svg,
.acls-icon-rounded svg,
.acls-icon-square svg {
  color: #fff;
}

.acls-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
}

.acls-badge svg {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
}

.acls-live-block-callout {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.acls-callout-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: currentColor;
  place-items: center;
}

.acls-callout-icon svg {
  width: 17px;
  height: 17px;
  color: #fff;
}

.acls-callout-copy {
  flex: 1;
  min-width: 0;
}

.acls-callout-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.02em;
}

.acls-callout-copy p {
  margin-bottom: 0;
  opacity: 0.86;
}

.acls-feature-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acls-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.acls-list-icon {
  display: grid;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 15%, transparent);
  place-items: center;
}

.acls-list-icon svg {
  width: 13px;
  height: 13px;
}

.acls-quote {
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
  border: 0;
  color: inherit;
}

.acls-quote-mark {
  position: absolute;
  top: -12px;
  left: 0;
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
  opacity: 0.38;
}

.acls-quote p {
  margin: 0 0 13px;
  font-size: 1.08em;
  font-weight: 550;
  line-height: 1.55;
}

.acls-quote footer {
  display: flex;
  flex-direction: column;
  font-size: 0.82em;
}

.acls-quote footer span {
  opacity: 0.72;
}

.acls-social-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: inherit;
  gap: 8px;
}

.acls-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}

.acls-social-links a:hover,
.acls-social-links a:focus {
  background: color-mix(in srgb, currentColor 21%, transparent);
  color: inherit;
  transform: translateY(-1px);
}

.acls-social-links svg {
  width: 18px;
  height: 18px;
}

.acls-social-links a span {
  display: none;
}

.acls-social-pills a {
  padding: 0 13px;
  border-radius: 999px;
}

.acls-social-pills a span,
.acls-social-text a span {
  display: inline;
}

.acls-social-text a {
  min-width: 0;
  min-height: 0;
  padding: 3px;
  border-radius: 4px;
  background: transparent;
}

.acls-login-video {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: #17131f;
  object-fit: cover;
}

.acls-live-block-divider {
  width: 100%;
}

.acls-live-block-divider hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top-style: solid;
  border-top-color: currentColor;
  opacity: 0.25;
}

.acls-spacer {
  display: block;
  width: 1px;
}

.acls-designed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 19px;
  border: 2px solid var(--acls-accent, #6d45f5);
  border-radius: var(--acls-button-radius, 12px);
  background: var(--acls-accent, #6d45f5);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.acls-designed-button:hover,
.acls-designed-button:focus {
  color: #fff;
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 20, 75, 0.18);
}

.acls-live-side .acls-button-outline {
  border-color: currentColor;
  background: transparent;
  color: inherit !important;
}

.acls-button-outline {
  background: transparent;
  color: var(--acls-accent, #6d45f5) !important;
}

.acls-button-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--acls-accent, #6d45f5) !important;
  text-decoration: underline;
}

.acls-shadow-soft {
  box-shadow: 0 14px 36px rgba(30, 18, 58, 0.1);
}

.acls-shadow-medium {
  box-shadow: 0 20px 55px rgba(30, 18, 58, 0.16);
}

.acls-shadow-strong {
  box-shadow: 0 28px 75px rgba(30, 18, 58, 0.25);
}

/* Native login form. Its markup and hooks are intentionally kept while the
   platform logo is permanently hidden for white-label installations. */
.acls-native-slot,
.acls-native-login,
.acls-native-login form {
  box-sizing: border-box;
}

.acls-native-slot #login {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
}

body.login.acls-enabled #login > h1,
.acls-native-login > h1 {
  display: none !important;
}

.acls-native-slot #login form {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.acls-native-login form + form {
  margin-top: 18px;
}

.acls-native-login a:not(.button) {
  color: var(--acls-accent, #6d45f5);
}

.acls-native-login label {
  color: inherit;
  font-size: 14px;
  font-weight: 650;
}

.acls-native-login .input,
.acls-native-login input[type="text"],
.acls-native-login input[type="email"],
.acls-native-login input[type="password"],
.acls-native-login input[type="url"],
.acls-native-login select,
.acls-native-login textarea {
  min-height: 48px;
  border: 1px solid rgba(40, 27, 70, 0.18);
  border-radius: var(--acls-input-radius, 12px);
  background: rgba(255, 255, 255, 0.92);
  color: #211a32;
  font-size: 16px;
  box-shadow: none;
}

.acls-native-login .input:focus,
.acls-native-login input:focus,
.acls-native-login select:focus,
.acls-native-login textarea:focus {
  border-color: var(--acls-accent, #6d45f5);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--acls-accent, #6d45f5) 25%, transparent);
  outline: 0;
}

.acls-native-login .button-primary,
.acls-native-login input[type="submit"],
.acls-native-login form button:not(.wp-hide-pw),
.acls-native-login form .button:not(.wp-hide-pw) {
  min-height: 44px;
  padding: 0 20px;
  border-color: var(--acls-accent, #6d45f5) !important;
  border-radius: var(--acls-button-radius, 12px) !important;
  background: var(--acls-accent, #6d45f5) !important;
  color: #fff !important;
  font-weight: 700;
  text-shadow: none;
  box-shadow: none;
}

.acls-native-login .button-primary:hover,
.acls-native-login .button-primary:focus,
.acls-native-login input[type="submit"]:hover,
.acls-native-login input[type="submit"]:focus,
.acls-native-login form button:not(.wp-hide-pw):hover,
.acls-native-login form button:not(.wp-hide-pw):focus,
.acls-native-login form .button:not(.wp-hide-pw):hover,
.acls-native-login form .button:not(.wp-hide-pw):focus {
  border-color: var(--acls-accent, #6d45f5) !important;
  background: var(--acls-accent, #6d45f5) !important;
  filter: brightness(0.92);
}

.acls-native-login .button.wp-hide-pw {
  min-height: 40px;
  color: var(--acls-accent, #6d45f5);
}

.acls-native-login #nav,
.acls-native-login #backtoblog,
.acls-native-login .privacy-policy-page-link {
  margin: 18px 0 0;
  padding: 0;
  text-align: center;
}

.acls-native-login #nav a,
.acls-native-login #backtoblog a,
.acls-native-login .privacy-policy-page-link a {
  color: inherit;
  opacity: 0.78;
}

.acls-native-login .message,
.acls-native-login #login_error,
.acls-native-login .success {
  margin: 0 0 20px;
  border-radius: 10px;
  box-shadow: none;
}

.acls-native-language-switcher {
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
}

.acls-native-language-switcher form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.acls-native-language-switcher select {
  min-height: 36px;
}

/* Popup and slide-in content. The panel stays out of layout until its trigger
   opens it, so builders can place the trigger like any text or button block. */
body.acls-interaction-open,
body.acls-interaction-open .acls-login-page {
  overflow: hidden !important;
}

.acls-interaction-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  padding: 10px 19px;
  border: 2px solid var(--acls-accent, #6d45f5);
  border-radius: var(--acls-button-radius, 12px);
  background: var(--acls-accent, #6d45f5);
  color: #fff;
  font: inherit;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.acls-interaction-trigger:hover,
.acls-interaction-trigger:focus-visible {
  color: #fff;
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 20, 75, 0.18);
}

.acls-live-side .acls-trigger-outline {
  border-color: currentColor;
  color: inherit;
}

.acls-trigger-outline {
  background: transparent;
  color: var(--acls-accent, #6d45f5);
}

.acls-trigger-outline:hover,
.acls-trigger-outline:focus-visible {
  color: var(--acls-accent, #6d45f5);
}

.acls-live-side .acls-trigger-outline:hover,
.acls-live-side .acls-trigger-outline:focus-visible,
.acls-live-side .acls-trigger-text,
.acls-live-side .acls-trigger-text:hover,
.acls-live-side .acls-trigger-text:focus-visible {
  color: inherit;
}

.acls-trigger-text {
  min-height: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--acls-accent, #6d45f5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acls-trigger-text:hover,
.acls-trigger-text:focus-visible {
  color: var(--acls-accent, #6d45f5);
  box-shadow: none;
}

.acls-interaction-panel[hidden] {
  display: none !important;
}

.acls-interaction-panel {
  position: fixed;
  z-index: 1000005;
  inset: 0;
  display: flex;
  overflow: hidden;
  color: var(--acls-panel-color, #211a32);
  font-family: var(--acls-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.6;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
  transition: opacity 0.22s ease;
}

.acls-interaction-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.acls-interaction-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(8, 5, 16, var(--acls-panel-overlay, 0.55));
  box-shadow: none;
  cursor: default;
  appearance: none;
}

button.acls-interaction-backdrop[data-acls-close] {
  cursor: pointer;
}

.acls-interaction-surface {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 32px), var(--acls-panel-width, 520px));
  max-height: 86vh;
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 22px;
  background: var(--acls-panel-bg, #fff);
  color: var(--acls-panel-color, #211a32);
  box-shadow: 0 30px 90px rgba(12, 7, 27, 0.3);
  overscroll-behavior: contain;
  outline: 0;
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.acls-presentation-popup {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.acls-popup-fade .acls-interaction-surface {
  opacity: 0;
}

.acls-popup-zoom .acls-interaction-surface {
  opacity: 0;
  transform: scale(0.94);
}

.acls-popup-rise .acls-interaction-surface {
  opacity: 0;
  transform: translateY(28px);
}

.acls-presentation-popup.is-open .acls-interaction-surface {
  opacity: 1;
  transform: none;
}

.acls-presentation-slide {
  align-items: stretch;
}

.acls-presentation-slide .acls-interaction-surface {
  width: min(92vw, var(--acls-panel-width, 520px));
  max-height: none;
  border-radius: 0;
}

.acls-slide-right {
  justify-content: flex-end;
}

.acls-slide-right .acls-interaction-surface {
  border-radius: 22px 0 0 22px;
  transform: translateX(105%);
}

.acls-slide-left {
  justify-content: flex-start;
}

.acls-slide-left .acls-interaction-surface {
  border-radius: 0 22px 22px 0;
  transform: translateX(-105%);
}

.acls-slide-bottom {
  align-items: flex-end;
  justify-content: center;
}

.acls-slide-bottom .acls-interaction-surface {
  width: min(100%, var(--acls-panel-width, 520px));
  max-height: 82vh;
  border-radius: 22px 22px 0 0;
  transform: translateY(105%);
}

.acls-presentation-slide.is-open .acls-interaction-surface {
  transform: none;
}

.acls-interaction-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  border-radius: 50%;
  background: rgba(33, 26, 50, 0.08);
  color: inherit;
  font: inherit;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  place-items: center;
}

.acls-interaction-close:hover,
.acls-interaction-close:focus-visible {
  background: rgba(33, 26, 50, 0.15);
  color: inherit;
  outline: 2px solid var(--acls-accent, #6d45f5);
  outline-offset: 2px;
}

.acls-interaction-surface .acls-interaction-title {
  margin: 0 46px 14px 0;
  color: inherit;
  font: inherit;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.acls-interaction-body {
  color: inherit;
}

.acls-interaction-body > :first-child {
  margin-top: 0;
}

.acls-interaction-body > :last-child {
  margin-bottom: 0;
}

.acls-interaction-body a {
  color: var(--acls-accent, #6d45f5);
}

@media (min-width: 783px) {
  .acls-hide-desktop {
    display: none !important;
  }
}

@media (max-width: 782px) {
  body.acls-ready .acls-login-page {
    align-items: flex-start;
    padding: 0;
  }

  .acls-live-stage {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .acls-live-side,
  .acls-live-main {
    flex: 0 0 auto;
    width: 100%;
  }

  .acls-live-side .acls-zone-inner,
  .acls-live-main .acls-zone-inner {
    padding: clamp(26px, 8vw, 48px);
  }

  .acls-layout-split-right .acls-live-side {
    order: 1;
  }

  .acls-layout-split-right .acls-live-main {
    order: 2;
  }

  .acls-layout-center .acls-live-main .acls-zone-inner {
    min-height: 100vh;
  }

  .acls-live-block-login {
    padding: clamp(24px, 7vw, 42px) !important;
    border-radius: min(24px, 5vw) !important;
  }

  .acls-hide-mobile {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .acls-live-main .acls-zone-inner {
    padding: 18px;
  }

  .acls-live-block-login {
    padding: 24px 20px !important;
  }

  .acls-presentation-popup {
    padding: 12px;
  }

  .acls-presentation-popup .acls-interaction-surface {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 28px 22px;
    border-radius: 18px;
  }

  .acls-presentation-slide .acls-interaction-surface {
    width: min(94vw, var(--acls-panel-width, 520px));
    padding: 30px 22px;
  }

  .acls-slide-bottom .acls-interaction-surface {
    width: 100%;
    max-height: 86vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acls-designed-button,
  .acls-interaction-trigger,
  .acls-interaction-panel,
  .acls-interaction-surface {
    transition: none;
  }
}
