/* Canonical authentication presentation. CustomerFrontEnd owns this file.
   Run node scripts/sync-auth-presentation.js to update recipient sites. */
/* Bundle identical font faces, including the light title, without a remote dependency. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/Poppins-ExtraLight.woff2') format('woff2'),
    url('../fonts/Poppins-ExtraLight.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Poppins-Regular.woff2') format('woff2'), url('../fonts/Poppins-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Poppins-Medium.woff2') format('woff2'), url('../fonts/Poppins-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'), url('../fonts/Poppins-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Poppins-Bold.woff2') format('woff2'), url('../fonts/Poppins-Bold.ttf') format('truetype');
}
.cf-auth-page.cf-auth-page {
  --cf-auth-background: url('../images/login-bg.png');
  --cf-auth-primary: var(--wl-control-color, var(--cf-color-primary, #0267f3));
  --cf-auth-text: var(--wl-text-color, var(--cf-color-text, #1f2933));
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  --cf-auth-top-inset: 72px;
  --cf-auth-stage-gap: 48px;
  grid-template-rows: max-content minmax(0, 1fr) max-content;
  align-items: start;
  justify-items: center;
  align-content: start;
  justify-content: stretch !important;
  gap: var(--cf-auth-stage-gap) !important;
  width: 100%;
  min-width: 0 !important;
  min-height: max(880px, 100svh) !important;
  height: auto !important;
  padding: var(--cf-auth-top-inset) 32px 28px !important;
  margin: 0;
  overflow: visible !important;
  overflow-anchor: none;
  background: var(--wl-login-background-image, var(--cf-auth-background)) center / cover no-repeat !important;
  background-color: var(
    --wl-login-background-color,
    var(--wl-page-background-color, var(--cf-color-page, #f8fbff))
  ) !important;
  color: var(--cf-auth-text);
  font: 400 12px/18px var(--app-font-family, 'Poppins', 'Segoe UI', sans-serif);
  text-align: center;
}
.cf-auth-page *,
.cf-auth-page *::before,
.cf-auth-page *::after {
  box-sizing: border-box;
}
.cf-auth-page.cf-auth-page [hidden] {
  display: none !important;
}
.cf-auth-page .cf-auth-header {
  grid-row: 1;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px !important;
  margin: 0 !important;
  width: 100%;
}
.cf-auth-page .cf-auth-header img {
  display: block;
  width: 136px !important;
  height: 55px !important;
  max-height: 55px !important;
  object-fit: contain;
}
/* Override legacy scoped mt-5 spacing so the brand stays fixed between steps. */
body .cf-auth-page.cf-auth-page .cf-auth-header.mt-5 {
  margin-top: 0 !important;
}
.cf-auth-page .cf-auth-header .brand-lockup {
  display: flex;
}
.cf-auth-page .cf-auth-partner-brand {
  display: block;
  width: var(--plexe-logo-image-width, 136px);
  max-width: 100%;
  height: 55px;
  background: var(--plexe-logo-image) center / contain no-repeat;
}
.cf-auth-page.cf-auth-whitelabel {
  --cf-auth-primary: var(--plexe-light-color-4, #0267f3);
}
.system-message:has(.cf-auth-page) {
  height: auto !important;
  overflow: visible;
}
.cf-auth-page .cf-auth-header h1,
.cf-auth-page .cf-auth-header .title,
.cf-auth-page .cf-auth-header .cf-auth-motto {
  margin: 0 !important;
  color: var(--cf-auth-text) !important;
  font: 200 29px/1.45 var(--app-font-family, 'Poppins', 'Segoe UI', sans-serif) !important;
  white-space: pre-line;
  max-width: 100%;
  overflow-wrap: anywhere;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}
.cf-auth-page .cf-auth-content {
  min-width: 0;
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  gap: 16px;
  margin: 0;
}
.cf-auth-page .cf-auth-screen-title {
  margin: 0;
  color: var(--cf-auth-text);
  font: 400 20px/30px var(--app-font-family, 'Poppins', 'Segoe UI', sans-serif);
}
.cf-auth-page .cf-auth-form {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  min-height: 0 !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.cf-auth-page .cf-auth-field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  margin: 0 !important;
  text-align: left;
}
.cf-auth-page .cf-auth-field input:where(:not([type='checkbox']):not([type='hidden'])) {
  width: 100%;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #ced4da !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--cf-auth-text);
  font: 400 14px/21px var(--app-font-family, 'Poppins', 'Segoe UI', sans-serif) !important;
  box-shadow: none;
}
.cf-auth-page .cf-auth-field > label,
.cf-auth-page .cf-auth-field > span:first-child {
  position: static !important;
  order: -1;
  z-index: 2;
  top: auto;
  left: auto;
  width: auto;
  height: auto;
  padding: 0;
  border: 0 !important;
  margin: 0 0 8px;
  color: #616e7c;
  font: 400 12px/18px var(--app-font-family, 'Poppins', 'Segoe UI', sans-serif) !important;
  text-transform: none;
  transform: none !important;
  transform-origin: 0 0;
  pointer-events: none;
  background: transparent !important;
}
.cf-auth-page .cf-auth-field:focus-within > label,
.cf-auth-page .cf-auth-field:focus-within > span:first-child,
.cf-auth-page .cf-auth-field:has(input:not(:placeholder-shown)) > label,
.cf-auth-page .cf-auth-field:has(input:not(:placeholder-shown)) > span:first-child {
  transform: none !important;
  background: transparent !important;
}
.cf-auth-page .cf-auth-field input:focus {
  border-color: var(--cf-auth-primary) !important;
  outline: 0;
  background: var(--wl-input-focus-background-color, #f3f5fc) !important;
  box-shadow: 0 0 0 3px rgb(2 103 243 / 16%) !important;
}
.cf-auth-page .cf-auth-submit.cf-auth-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 24px !important;
  margin: 0;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: var(--cf-auth-primary) !important;
  color: #fff !important;
  font: 600 14px/20px var(--app-font-family, 'Poppins', 'Segoe UI', sans-serif) !important;
  text-transform: none;
  box-shadow: none;
}
.cf-auth-page .cf-auth-submit:disabled {
  opacity: 0.58 !important;
  cursor: default;
}
.cf-auth-page .cf-auth-form > :has(> .cf-auth-submit) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.cf-auth-page .cf-auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 !important;
  width: 100%;
  font-size: 12px;
  line-height: 18px;
}
.cf-auth-page .cf-auth-links p,
.cf-auth-page .cf-auth-footer p {
  margin: 0;
}
.cf-auth-page a,
.cf-auth-page .cf-auth-link {
  color: var(--cf-auth-primary) !important;
  font-size: 12px;
  font-weight: 400 !important;
  line-height: 18px;
  text-decoration: none !important;
  text-underline-offset: 4px;
}
.cf-auth-page .cf-auth-link {
  border: 0;
  padding: 5px 0;
  background: transparent;
  cursor: pointer;
}
.cf-auth-page .cf-auth-link:disabled {
  cursor: default;
  opacity: 0.6;
}
.cf-auth-page a:hover,
.cf-auth-page .cf-auth-link:hover {
  text-decoration: underline !important;
}
.cf-auth-page :is(a, button):focus-visible {
  outline: 3px solid var(--cf-auth-primary);
  outline-offset: 3px;
}
.cf-auth-page .cf-auth-footer {
  grid-row: 3;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px !important;
  margin: 0 !important;
  color: var(--cf-auth-text);
  font-size: 12px;
  line-height: 18px;
}
.cf-auth-page .cf-auth-digits {
  display: flex !important;
  gap: 8px !important;
  justify-content: center;
  max-width: 100%;
}
.cf-auth-page .cf-auth-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.cf-auth-page .cf-auth-password-toggle {
  position: absolute;
  right: 2px;
  top: 26px;
  bottom: auto;
  transform: none;
  padding: 0;
  width: 42px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--cf-auth-text);
}
.cf-auth-page .cf-auth-field:has(button) input {
  padding-right: 52px !important;
}
.cf-auth-page .cf-auth-field > small {
  position: static;
  margin-top: 4px;
  font-size: 11px;
  line-height: 18px;
}
.cf-auth-page.cf-auth-admin {
  --app-font-family: 'Poppins', 'Segoe UI', sans-serif;
}
.cf-auth-page.cf-auth-admin .login-panel {
  width: 100%;
  max-width: 420px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.cf-auth-page.cf-auth-admin .login-panel > form {
  width: 100%;
}
.cf-auth-page.cf-auth-admin .login-version-text {
  position: fixed;
  bottom: 4px;
  left: 8px;
  margin: 0;
  font-size: 10px;
}
.cf-auth-page.cf-auth-admin .login-panel > .text-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cf-auth-page.cf-auth-recovery .cf-auth-recovery-content {
  max-width: 420px;
}
.cf-auth-page.cf-auth-recovery h1:not(.cf-auth-header h1) {
  font-size: 20px !important;
  line-height: 30px;
  margin: 0;
}
.cf-auth-page.cf-auth-recovery .text-white {
  color: var(--cf-auth-text) !important;
}
.cf-auth-page.cf-auth-recovery form {
  width: 100%;
}
.cf-auth-page.cf-auth-recovery form > .bg-white {
  background: transparent !important;
  padding: 0 !important;
  margin-top: 24px !important;
  max-width: 420px !important;
  box-shadow: none !important;
}
.cf-auth-page.cf-auth-recovery .cf-auth-recovery-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.cf-auth-page.cf-auth-recovery .cf-auth-field > label {
  font-size: 12px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  text-align: left;
}
.cf-auth-page.cf-auth-recovery .cf-auth-field > small {
  position: static;
  display: block;
  margin-top: 4px;
}
.cf-auth-page.cf-auth-recovery .cf-auth-form > .mt-5 {
  margin-top: 0 !important;
}
.cf-auth-page.cf-auth-recovery input:not([type='checkbox']) {
  width: 100%;
  height: 44px;
  border: 1px solid #ced4da;
  border-radius: 7px;
  padding: 0 14px;
  background: transparent !important;
  font: 400 14px/21px var(--app-font-family, 'Poppins', sans-serif);
}
.cf-auth-page.cf-auth-recovery label,
.cf-auth-page.cf-auth-recovery h4 {
  font: 400 14px/21px var(--app-font-family, 'Poppins', sans-serif) !important;
  text-transform: none !important;
  text-align: left;
  color: #616e7c;
}
.cf-auth-page .portal-login-option {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.cf-auth-page.cf-auth-two-factor .pages-container,
.cf-auth-page.cf-auth-two-factor .container,
.cf-auth-page.cf-auth-two-factor .inner-content {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.cf-auth-page.cf-auth-two-factor .card-wrapper {
  margin: 16px 0;
  padding: 0;
}
.cf-auth-page.cf-auth-two-factor .sms-code-input-wrapper {
  margin: 24px auto !important;
}
.cf-auth-page.cf-auth-two-factor .cf-auth-digits > .d-flex {
  gap: 8px;
}
.cf-auth-page.cf-auth-two-factor .dash {
  display: none;
}
.cf-auth-page.cf-auth-two-factor > app-loader:not(.show) {
  display: none;
}
.cf-auth-page.cf-auth-two-factor > app-loader.show {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wl-login-background-color, var(--wl-page-background-color, var(--cf-color-page, #f8fbff)));
}
.cf-auth-page.cf-auth-two-factor .cf-auth-digits input.sms-code-input {
  flex: 0 1 48px;
  width: 48px !important;
  height: 52px !important;
  margin: 0 !important;
}
.cf-auth-page.cf-auth-error .error-content {
  width: 100%;
  margin: 0;
  padding: 0;
}
.cf-auth-page.cf-auth-error .cf-auth-content {
  position: static;
  transform: none;
}
.cf-auth-page.cf-auth-error h3 {
  font-size: 20px;
  line-height: 30px;
}
.portal-auth-page .cf-topbar {
  display: none;
}
.portal-auth-page .portal-login {
  min-height: 100vh;
}
.cf-auth-page .cf-auth-digits input {
  width: 48px !important;
  min-width: 0;
  height: 52px !important;
  padding: 8px !important;
  border: 1px solid #ced4da !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--cf-auth-text);
  text-align: center;
  font-size: 21px !important;
}
body.has-system-notification .cf-auth-page.cf-auth-page {
  min-height: calc(100vh - 50px) !important;
}
body.has-whitelabel-disclosure .cf-auth-page.cf-auth-page {
  min-height: calc(100vh - var(--app-whitelabel-footer-height, 56px)) !important;
}
body.has-system-notification.has-whitelabel-disclosure .cf-auth-page.cf-auth-page {
  min-height: calc(100vh - 50px - var(--app-whitelabel-footer-height, 56px)) !important;
}
@media (max-width: 768px) {
  .cf-auth-page.cf-auth-page {
    --cf-auth-top-inset: 40px;
    --cf-auth-stage-gap: 40px;
    min-height: max(844px, 100svh) !important;
    padding: 40px 24px 28px !important;
  }
  .cf-auth-page .cf-auth-header {
    margin-top: 0 !important;
  }
  .cf-auth-page .cf-auth-header img {
    width: 136px;
    max-height: 55px;
  }
  .cf-auth-page .cf-auth-header h1,
  .cf-auth-page .cf-auth-header .title {
    font-size: 25px !important;
    line-height: 1.45 !important;
  }
  .cf-auth-page .cf-auth-footer {
    margin-top: 0 !important;
    padding-bottom: 8px;
  }
  .cf-auth-page .cf-auth-digits {
    gap: 6px !important;
  }
  .cf-auth-page .cf-auth-digits input {
    width: min(48px, 12vw) !important;
  }
}

/* Natural form tracks keep shorter sign-in methods compact. The outer shell,
   rather than hidden form rows, provides continuity between steps. */
.cf-auth-page .cf-auth-motto {
  white-space: pre-line;
}
.cf-auth-page .cf-auth-recovery-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 24px;
}
.cf-auth-page .cf-auth-header app-brand-lockup {
  display: block;
}
.cf-auth-page .cf-auth-content {
  gap: 24px;
}
.cf-auth-page .cf-auth-step-heading,
.cf-auth-page .admin-auth-heading {
  width: 100%;
  min-height: 76px;
  margin: 0;
  text-align: center;
}
.cf-auth-page .cf-auth-step-title,
.cf-auth-page .cf-auth-screen-title {
  text-transform: none !important;
  color: var(--cf-auth-text);
  font: 500 20px/30px var(--app-font-family, 'Poppins', sans-serif) !important;
  letter-spacing: -0.025em;
  margin: 0 0 8px !important;
}
.cf-auth-page .cf-auth-step-description,
.cf-auth-page .cf-auth-description,
.cf-auth-page .cf-auth-step-heading > p {
  font: 400 12px/1.8 var(--app-font-family, 'Poppins', sans-serif);
  color: var(--wl-text-color, #53677f);
  margin: 0;
}
.cf-auth-page .cf-auth-step {
  width: 100%;
}
.cf-auth-page .cf-auth-code-step:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 24px !important;
  width: 100%;
}
.cf-auth-page .cf-auth-code-actions {
  width: 100%;
}
.cf-auth-page .cf-auth-form > .language-switch {
  margin: 0 !important;
}
.cf-auth-page .cf-auth-feedback {
  width: 100%;
  min-height: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.cf-auth-page .cf-auth-feedback > :is(p, .alert, .alert-danger) {
  margin: 0 !important;
}
.cf-auth-page .cf-auth-feedback .cf-auth-feedback {
  min-height: 0;
}
/* Keep the proof's space after consumption, while allowing long errors to grow. */
.cf-auth-page .cf-auth-feedback:has(> :is(app-turnstile-challenge, .cf-auth-verification)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(48px, auto);
  align-content: start;
  justify-items: center;
  min-height: 24px;
}
.cf-auth-page .cf-auth-feedback > :is(app-turnstile-challenge, .cf-auth-verification) {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-width: 0;
  width: 100%;
}
.cf-auth-page
  .cf-auth-feedback
  > :is(app-turnstile-challenge.verification-enabled, .cf-auth-verification[data-configured='true']) {
  min-height: 80px;
}
.cf-auth-page app-turnstile-challenge .verification {
  margin: 0 auto;
  min-width: 0;
  max-width: 100%;
  width: 300px;
}
.cf-auth-page :is(app-turnstile-challenge .widget, .cf-auth-verification .cf-turnstile) {
  display: flex;
  justify-content: center;
  min-width: 0;
  width: 100%;
}
.cf-auth-page .cf-auth-feedback > .cf-auth-errors {
  grid-area: 2 / 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-height: 48px;
}
.cf-auth-page .cf-auth-errors > * {
  margin: 0 !important;
}
.cf-auth-page .cf-auth-field > :is(small, .text-danger, .portal-validation) {
  position: static !important;
  margin: 4px 0 0;
  width: 100%;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 18px;
}
.cf-auth-page .cf-auth-field > :is(small, .portal-validation):empty {
  display: none;
}
.cf-auth-page :is(code-input, app-login-code-input) {
  max-width: 100%;
}
.cf-auth-page :is(code-input, app-login-code-input, .cf-auth-digits) input,
.cf-auth-page input[data-code-value] {
  height: 52px !important;
  min-height: 52px !important;
  border-radius: 7px !important;
  font-size: 21px !important;
}
.cf-auth-page .cf-auth-submit > :is(.spinner-border, .fa-spinner, .portal-login__spinner) {
  position: absolute;
  left: 12px;
  margin: 0 !important;
}
.cf-auth-page .cf-auth-content {
  animation: cf-auth-content-in 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cf-auth-page .cf-auth-step {
  animation: cf-auth-step-in 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes cf-auth-content-in {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}
@keyframes cf-auth-step-in {
  from {
    opacity: 0.5;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-height: 800px) and (min-width: 769px) {
  .cf-auth-page.cf-auth-page {
    --cf-auth-top-inset: 52px;
    --cf-auth-stage-gap: 36px;
  }
  .cf-auth-page .cf-auth-header :is(h1, .title, .cf-auth-motto) {
    font-size: 27px !important;
  }
}
@media (max-width: 768px) {
  .cf-auth-page .cf-auth-header {
    gap: 24px !important;
  }
  .cf-auth-page .cf-auth-header .cf-auth-motto {
    font-size: 25px !important;
  }
  .cf-auth-page .cf-auth-field input:where(:not([type='checkbox']):not([type='hidden'])) {
    font-size: 16px !important;
  }
  .cf-auth-page :is(code-input, app-login-code-input, .cf-auth-digits) input,
  .cf-auth-page input[data-code-value] {
    font-size: 21px !important;
  }
}
@media (max-width: 400px) {
  .cf-auth-page
    .cf-auth-feedback
    > :is(app-turnstile-challenge.verification-enabled, .cf-auth-verification[data-configured='true']) {
    min-height: 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cf-auth-page *,
  .cf-auth-page *::before,
  .cf-auth-page *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
