/* Xensec authentication screens — acp-v2.0.21 */
.customer-auth-v221-body,
.acp-auth-v221-body {
  min-height: 100dvh;
}

.customer-auth-v221-body .customer-auth-shell {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
}

.xensec-login-v221 {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  color: #f6f8ff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.customer-auth-v221-body .xensec-login-v221 {
  padding: 0;
}

.acp-auth-v221-body .xensec-login-v221 {
  min-height: 100dvh;
}

.xensec-login-panel-v221 {
  position: relative;
  width: min(700px, 100%);
  overflow: hidden;
  border: 1px solid rgba(105, 129, 207, .28);
  border-radius: 30px;
  padding: clamp(24px, 4.2vw, 42px);
  background:
    radial-gradient(circle at 82% -8%, rgba(123, 81, 255, .16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(27, 216, 255, .10), transparent 34%),
    linear-gradient(155deg, rgba(10, 20, 45, .96), rgba(4, 12, 29, .96));
  box-shadow:
    0 36px 100px rgba(0, 0, 0, .48),
    inset 0 1px 0 rgba(255, 255, 255, .045);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: xensecAuthRiseV221 .38s ease both;
}

.xensec-login-panel-v221::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #22d9ff, #625dff 55%, #d92be8);
  box-shadow: 0 0 26px rgba(79, 123, 255, .42);
}

.xensec-login-panel-v221::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: -160px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 71, 255, .16), transparent 67%);
  pointer-events: none;
}

.xensec-login-panel-v221 > * {
  position: relative;
  z-index: 1;
}

.xensec-login-heading-v221 {
  text-align: center;
}

.xensec-login-logo-v221 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  text-decoration: none;
}

.xensec-login-logo-v221 img {
  display: block;
  width: min(286px, 76vw);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(43, 182, 255, .20));
}

.xensec-login-kicker-v221 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 31px;
  padding: 0 13px;
  border: 1px solid rgba(70, 211, 255, .28);
  border-radius: 999px;
  color: #8ceeff;
  background: rgba(12, 105, 144, .13);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.xensec-login-kicker-v221 i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #40e6a2;
  box-shadow: 0 0 13px rgba(64, 230, 162, .82);
}

.xensec-login-kicker-v221.is-acp {
  color: #c6bcff;
  border-color: rgba(147, 111, 255, .32);
  background: rgba(87, 56, 168, .15);
}

.xensec-login-kicker-v221.is-acp i {
  background: #9a7cff;
  box-shadow: 0 0 13px rgba(154, 124, 255, .76);
}

.xensec-login-heading-v221 h1 {
  margin: 17px 0 10px;
  color: #fff;
  font-size: clamp(36px, 6vw, 50px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.xensec-login-heading-v221 p {
  width: min(530px, 100%);
  margin: 0 auto;
  color: rgba(213, 224, 252, .72);
  font-size: 15px;
  line-height: 1.65;
}

.xensec-login-notice-v221 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 13px 15px;
  border: 1px solid rgba(63, 224, 165, .20);
  border-radius: 16px;
  background: rgba(20, 111, 77, .12);
}

.xensec-login-notice-v221 > span {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #55ecad;
  background: rgba(38, 178, 119, .16);
  font-weight: 900;
}

.xensec-login-notice-v221 strong,
.xensec-login-notice-v221 small {
  display: block;
}

.xensec-login-notice-v221 strong {
  color: #f5fbff;
  font-size: 14px;
}

.xensec-login-notice-v221 small {
  margin-top: 3px;
  color: rgba(211, 226, 248, .66);
  line-height: 1.45;
}

.xensec-login-notice-v221.is-acp {
  border-color: rgba(144, 113, 255, .22);
  background: rgba(77, 50, 148, .13);
}

.xensec-login-notice-v221.is-acp > span {
  color: #c7b9ff;
  background: rgba(125, 91, 255, .17);
}

.xensec-login-method-v221 {
  margin-top: 24px;
  padding: clamp(19px, 3vw, 26px);
  border: 1px solid rgba(103, 127, 196, .23);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 18, 42, .86), rgba(5, 14, 34, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.xensec-login-method-title-v221 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
}

.xensec-login-method-title-v221 > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(102, 112, 255, .24);
  border-radius: 14px;
  color: #a695ff;
  background: rgba(83, 64, 180, .17);
  box-shadow: 0 10px 28px rgba(39, 31, 115, .18);
}

.xensec-login-method-title-v221 small,
.xensec-login-method-title-v221 h2 {
  display: block;
}

.xensec-login-method-title-v221 small {
  color: #8394c1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.xensec-login-method-title-v221 h2 {
  margin: 3px 0 0;
  color: #f8faff;
  font-size: 18px;
  letter-spacing: -.02em;
}

.xensec-login-form-v221 {
  display: grid;
  gap: 10px;
}

.xensec-login-form-v221 label {
  margin-top: 5px;
  color: #d9e3fb;
  font-size: 12px;
  font-weight: 750;
}

.xensec-login-input-v221 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid rgba(116, 137, 199, .25);
  border-radius: 15px;
  background: rgba(2, 9, 24, .72);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.xensec-login-input-v221:focus-within {
  border-color: rgba(90, 104, 255, .68);
  background: rgba(4, 11, 30, .88);
  box-shadow: 0 0 0 4px rgba(87, 93, 255, .10), 0 0 24px rgba(59, 124, 255, .08);
}

.xensec-login-input-v221 > span {
  width: 20px;
  color: #7082bd;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.xensec-login-input-v221 input {
  width: 100%;
  min-width: 0;
  height: 54px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  font: inherit;
}

.xensec-login-input-v221 input::placeholder {
  color: rgba(156, 172, 213, .48);
}

.xensec-login-primary-v221 {
  width: 100%;
  min-height: 56px;
  margin-top: 10px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(105deg, #315ff6, #694df7 58%, #8e43e8);
  box-shadow: 0 16px 42px rgba(63, 75, 224, .25);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.xensec-login-primary-v221:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 20px 48px rgba(72, 74, 232, .31);
}

.xensec-login-primary-v221:active {
  transform: translateY(0);
}

.xensec-login-switch-v221 {
  margin: 18px 0 0;
  color: rgba(205, 217, 247, .68);
  text-align: center;
  font-size: 13px;
}

.xensec-login-switch-v221 a {
  color: #9f9aff;
  font-weight: 800;
  text-decoration: none;
}

.xensec-login-switch-v221 a:hover,
.xensec-login-security-v221 > a:hover {
  color: #d4d2ff;
}

.xensec-login-security-v221 {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid rgba(94, 116, 180, .18);
}

.xensec-login-security-v221 > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.xensec-login-security-v221 > div > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #6ce4b0;
  background: rgba(23, 126, 89, .14);
  font-size: 12px;
  font-weight: 900;
}

.xensec-login-security-v221 p {
  min-width: 0;
  margin: 0;
}

.xensec-login-security-v221 small,
.xensec-login-security-v221 strong {
  display: block;
}

.xensec-login-security-v221 small {
  color: #7384ae;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.xensec-login-security-v221 strong {
  margin-top: 2px;
  overflow: hidden;
  color: rgba(226, 234, 255, .78);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xensec-login-security-v221 > a {
  color: #8295d3;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.xensec-login-security-v221.is-acp > div > span {
  color: #bdaeff;
  background: rgba(93, 63, 171, .16);
}

.customer-auth-v221-body .customer-flashes.auth {
  width: min(700px, 100%);
  margin: 0 auto 14px;
}

.acp-auth-v221-body .acp-flash.floating {
  z-index: 10;
}

@keyframes xensecAuthRiseV221 {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 680px) {
  .xensec-login-v221,
  .customer-auth-v221-body .customer-auth-shell {
    padding: 14px;
  }

  .customer-auth-v221-body .xensec-login-v221 {
    padding: 0;
  }

  .xensec-login-panel-v221 {
    border-radius: 24px;
    padding: 22px 18px;
  }

  .xensec-login-logo-v221 img {
    width: min(240px, 74vw);
  }

  .xensec-login-heading-v221 h1 {
    font-size: 36px;
  }

  .xensec-login-method-v221 {
    padding: 18px 15px;
    border-radius: 18px;
  }

  .xensec-login-security-v221 {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .xensec-login-security-v221 > a {
    padding-top: 3px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xensec-login-panel-v221,
  .xensec-login-primary-v221 {
    animation: none !important;
    transition: none !important;
  }
}

/* Xensec compact authentication refinement — acp-v2.0.22 */
.customer-auth-v222-body,
.acp-auth-v222-body {
  min-height: 100dvh;
  overflow-x: hidden;
}

.xensec-auth-stage-v222 {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 100dvh;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(18px, 3vw, 30px) !important;
}

.customer-auth-v222-body .customer-auth-shell {
  place-items: initial;
}

.customer-auth-v222-body .xensec-login-v221,
.acp-auth-v222-body .xensec-login-v221 {
  width: 100%;
  min-height: 0;
  padding: 0;
}

.customer-auth-v222-body .xensec-login-panel-v221,
.acp-auth-v222-body .xensec-login-panel-v221 {
  width: min(560px, 100%);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 30px);
}

.customer-auth-v222-body .xensec-login-heading-v221,
.acp-auth-v222-body .xensec-login-heading-v221 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.customer-auth-v222-body .xensec-login-logo-v221,
.acp-auth-v222-body .xensec-login-logo-v221 {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 0 auto 10px;
}

.customer-auth-v222-body .xensec-login-logo-v221 img,
.acp-auth-v222-body .xensec-login-logo-v221 img {
  width: min(224px, 62vw);
  margin-inline: auto;
}

.customer-auth-v222-body .xensec-login-heading-v221 h1,
.acp-auth-v222-body .xensec-login-heading-v221 h1 {
  margin: 8px 0 7px;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.04;
}

.customer-auth-v222-body .xensec-login-heading-v221 p,
.acp-auth-v222-body .xensec-login-heading-v221 p {
  max-width: 450px;
  font-size: 13.5px;
  line-height: 1.55;
}

.customer-auth-v222-body .xensec-login-notice-v221,
.acp-auth-v222-body .xensec-login-notice-v221 {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 13px;
}

.customer-auth-v222-body .xensec-login-notice-v221 > span,
.acp-auth-v222-body .xensec-login-notice-v221 > span {
  width: 29px;
  height: 29px;
  border-radius: 9px;
}

.customer-auth-v222-body .xensec-login-method-v221,
.acp-auth-v222-body .xensec-login-method-v221 {
  margin-top: 16px;
  padding: 17px 18px;
  border-radius: 18px;
}

.customer-auth-v222-body .xensec-login-method-title-v221,
.acp-auth-v222-body .xensec-login-method-title-v221 {
  margin-bottom: 13px;
}

.customer-auth-v222-body .xensec-login-method-title-v221 > span,
.acp-auth-v222-body .xensec-login-method-title-v221 > span {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.customer-auth-v222-body .xensec-login-method-title-v221 h2,
.acp-auth-v222-body .xensec-login-method-title-v221 h2 {
  font-size: 16px;
}

.customer-auth-v222-body .xensec-login-input-v221,
.acp-auth-v222-body .xensec-login-input-v221 {
  min-height: 48px;
  border-radius: 13px;
}

.customer-auth-v222-body .xensec-login-input-v221 input,
.acp-auth-v222-body .xensec-login-input-v221 input {
  height: 46px;
}

.customer-auth-v222-body .xensec-login-primary-v221,
.acp-auth-v222-body .xensec-login-primary-v221 {
  min-height: 49px;
  margin-top: 7px;
  border-radius: 13px;
}

.customer-auth-v222-body .xensec-login-switch-v221 {
  margin-top: 13px;
}

.customer-auth-v222-body .xensec-login-security-v221,
.acp-auth-v222-body .xensec-login-security-v221 {
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
}

.customer-auth-v222-body .xensec-login-security-v221 > div > span,
.acp-auth-v222-body .xensec-login-security-v221 > div > span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.customer-auth-v222-body .xensec-auth-flash-v222,
.acp-auth-v222-body .xensec-auth-flash-v222 {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 8 !important;
  width: min(560px, 100%) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  pointer-events: auto !important;
}

.customer-auth-v222-body .xensec-auth-flash-v222 .customer-flash,
.acp-auth-v222-body .xensec-auth-flash-v222 .flash {
  width: 100%;
  margin: 0;
  border-radius: 14px;
  padding: 11px 14px !important;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .xensec-auth-stage-v222 {
    justify-content: flex-start;
    padding: 14px !important;
  }

  .customer-auth-v222-body .xensec-login-panel-v221,
  .acp-auth-v222-body .xensec-login-panel-v221 {
    border-radius: 21px;
    padding: 20px 16px;
  }

  .customer-auth-v222-body .xensec-login-logo-v221 img,
  .acp-auth-v222-body .xensec-login-logo-v221 img {
    width: min(205px, 66vw);
  }

  .customer-auth-v222-body .xensec-login-heading-v221 h1,
  .acp-auth-v222-body .xensec-login-heading-v221 h1 {
    font-size: 31px;
  }

  .customer-auth-v222-body .xensec-login-security-v221,
  .acp-auth-v222-body .xensec-login-security-v221 {
    grid-template-columns: 1fr;
  }
}


/* Xensec authentication flash alignment — acp-v2.0.23 */
.customer-auth-v223-body .xensec-auth-stage-v223,
.acp-auth-v223-body .xensec-auth-stage-v223 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.customer-auth-v223-body .xensec-auth-stack-v223,
.acp-auth-v223-body .xensec-auth-stack-v223 {
  position: relative;
  z-index: 4;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-inline: auto;
}

.customer-auth-v223-body .xensec-auth-stack-v223 > .xensec-login-v221,
.acp-auth-v223-body .xensec-auth-stack-v223 > .xensec-login-v221 {
  width: 100% !important;
  max-width: none !important;
}

.customer-auth-v223-body .xensec-auth-stack-v223 .xensec-login-panel-v221,
.acp-auth-v223-body .xensec-auth-stack-v223 .xensec-login-panel-v221 {
  width: 100% !important;
}

.customer-auth-v223-body .xensec-auth-flash-v223,
.acp-auth-v223-body .xensec-auth-flash-v223 {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  align-self: stretch !important;
}

@media (max-width: 620px) {
  .customer-auth-v223-body .xensec-auth-stack-v223,
  .acp-auth-v223-body .xensec-auth-stack-v223 {
    width: 100%;
    gap: 10px;
  }
}

/* Xensec compact registration experience — acp-v2.0.24 */
.customer-auth-route-register .xensec-auth-stack-v223 {
  width: min(560px, 100%);
}

.xensec-register-v224 {
  width: 100%;
  padding: 0;
}

.xensec-register-panel-v224 {
  width: 100%;
}

.xensec-register-heading-v224 .xensec-login-logo-v221 {
  margin-bottom: 8px;
}

.xensec-register-heading-v224 h1 {
  margin-top: 6px !important;
}

.xensec-register-method-v224 {
  margin-top: 16px;
}

.xensec-register-form-v224 {
  gap: 8px;
}

.xensec-register-form-v224 label {
  margin-top: 4px;
}

.xensec-register-password-hint-v224 {
  display: block;
  margin: -1px 2px 2px;
  color: rgba(186, 201, 235, .58);
  font-size: 10px;
  line-height: 1.45;
}

.xensec-register-security-v224 {
  grid-template-columns: 1fr 1fr auto;
}

.customer-auth-route-register .customer-kicker,
.customer-auth-route-register .customer-auth-footer {
  display: none !important;
}

@media (max-width: 620px) {
  .customer-auth-route-register .xensec-auth-stage-v223 {
    justify-content: flex-start !important;
  }

  .xensec-register-security-v224 {
    grid-template-columns: 1fr;
  }
}
/* Xensec compact two-factor challenge — acp-v2.0.28 */
.customer-auth-route-2fa .xensec-auth-stack-v223,
.acp-auth-route-2fa .xensec-auth-stack-v223 {
  width: min(540px, 100%);
}

.xensec-twofa-v228 {
  width: 100%;
  padding: 0;
}

.xensec-twofa-panel-v228 {
  width: 100% !important;
  padding: clamp(22px, 3vw, 29px) !important;
}

.xensec-twofa-heading-v228 .xensec-login-logo-v221 {
  margin-bottom: 8px;
}

.xensec-twofa-heading-v228 .xensec-login-logo-v221 img {
  width: min(218px, 62vw);
}

.xensec-twofa-heading-v228 h1 {
  margin: 7px 0 7px !important;
  font-size: clamp(30px, 4vw, 38px) !important;
}

.xensec-twofa-heading-v228 p {
  max-width: 430px;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

.xensec-twofa-alert-v228 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
  padding: 11px 13px;
  border: 1px solid rgba(242, 171, 61, .24);
  border-radius: 14px;
  background: rgba(116, 72, 16, .13);
}

.xensec-twofa-alert-v228 > span {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffc25e;
  background: rgba(164, 105, 24, .18);
  font-weight: 900;
}

.xensec-twofa-alert-v228 strong,
.xensec-twofa-alert-v228 small {
  display: block;
}

.xensec-twofa-alert-v228 strong {
  color: #f8faff;
  font-size: 13px;
}

.xensec-twofa-alert-v228 small {
  margin-top: 2px;
  color: rgba(215, 224, 248, .68);
  font-size: 11.5px;
  line-height: 1.45;
}

.xensec-twofa-alert-v228.is-danger {
  border-color: rgba(255, 93, 114, .28);
  background: rgba(126, 31, 49, .15);
}

.xensec-twofa-alert-v228.is-danger > span {
  color: #ff8393;
  background: rgba(166, 44, 65, .18);
}

.xensec-twofa-method-v228 {
  margin-top: 15px !important;
  padding: 16px 17px !important;
  border-radius: 18px !important;
}

.xensec-twofa-code-v228 {
  margin-top: 0 !important;
}

.xensec-twofa-method-title-v228 {
  margin-bottom: 10px !important;
}

.xensec-twofa-method-title-v228 > span {
  width: 35px !important;
  height: 35px !important;
  border-radius: 11px !important;
}

.xensec-twofa-method-title-v228 h2 {
  font-size: 16px !important;
}

.xensec-twofa-method-copy-v228 {
  margin: 0 0 11px;
  color: rgba(211, 222, 249, .67);
  font-size: 12.5px;
  line-height: 1.5;
}

.xensec-twofa-primary-v228 {
  min-height: 48px !important;
  margin-top: 7px !important;
  border-radius: 13px !important;
}

.xensec-twofa-primary-v228:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none !important;
  filter: none !important;
}

.xensec-twofa-message-v228 {
  display: block;
  min-height: 17px;
  margin-top: 8px;
  color: rgba(190, 204, 238, .58);
  font-size: 10.5px;
  text-align: center;
}

.xensec-twofa-divider-v228 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px 0;
  color: #7787af;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.xensec-twofa-divider-v228::before,
.xensec-twofa-divider-v228::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(97, 119, 184, .20);
}

.xensec-twofa-form-v228 {
  gap: 8px !important;
}

.xensec-twofa-input-v228 {
  min-height: 48px !important;
  border-radius: 13px !important;
}

.xensec-twofa-input-v228 input {
  height: 46px !important;
  font-weight: 700;
  letter-spacing: .045em;
}

.xensec-twofa-switch-v228 {
  margin-top: 13px !important;
  line-height: 1.45;
}

.xensec-twofa-switch-v228 strong {
  color: rgba(234, 240, 255, .88);
  font-weight: 750;
}

.xensec-twofa-security-v228 {
  margin-top: 15px !important;
  padding-top: 14px !important;
}

.acp-auth-route-2fa .xensec-twofa-panel-v228::before {
  background: linear-gradient(90deg, #5d7cff, #8b5dff 55%, #d735dc);
}

.acp-auth-route-2fa .xensec-twofa-method-title-v228 > span {
  color: #c0b1ff;
  border-color: rgba(145, 111, 255, .25);
  background: rgba(101, 69, 184, .18);
}

@media (max-width: 620px) {
  .customer-auth-route-2fa .xensec-auth-stage-v223,
  .acp-auth-route-2fa .xensec-auth-stage-v223 {
    justify-content: flex-start !important;
  }

  .xensec-twofa-panel-v228 {
    padding: 20px 16px !important;
  }

  .xensec-twofa-heading-v228 .xensec-login-logo-v221 img {
    width: min(200px, 65vw);
  }

  .xensec-twofa-heading-v228 h1 {
    font-size: 31px !important;
  }

  .xensec-twofa-method-v228 {
    padding: 15px !important;
  }

  .xensec-twofa-security-v228 {
    grid-template-columns: 1fr !important;
  }
}

/* Xensec ACP authentication alignment — acp-v3.0.9 */
.xensec-login-acp-v309 .xensec-login-panel-v221,
.xensec-twofa-acp-v309.xensec-login-v221 .xensec-login-panel-v221 {
  background:
    radial-gradient(circle at 82% -8%, rgba(191, 40, 255, .16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(25, 180, 255, .10), transparent 34%),
    linear-gradient(155deg, rgba(10, 18, 42, .97), rgba(5, 10, 28, .97));
}

.xensec-login-acp-v309 .xensec-login-panel-v221::before,
.xensec-twofa-acp-v309.xensec-login-v221 .xensec-login-panel-v221::before {
  background: linear-gradient(90deg, #12d7ff, #495dff 48%, #ef17d8);
}

.xensec-login-acp-v309 .xensec-login-primary-v221,
.xensec-twofa-acp-v309 .xensec-login-primary-v221 {
  background: linear-gradient(110deg, #347cff, #7658ff 55%, #b52ae6);
}

.xensec-login-acp-v309 .xensec-login-primary-v221:hover,
.xensec-twofa-acp-v309 .xensec-login-primary-v221:hover {
  box-shadow: 0 20px 48px rgba(101, 76, 238, .32);
}

/* Xensec unified minimal authentication — acp-v3.0.11 */
.customer-auth-route-login,
.customer-auth-route-2fa,
.acp-auth-route-login,
.acp-auth-route-2fa {
  --xauth-bg: #050914;
  --xauth-panel: rgba(7, 14, 30, .86);
  --xauth-panel-strong: rgba(8, 16, 34, .96);
  --xauth-line: rgba(130, 153, 210, .16);
  --xauth-line-strong: rgba(115, 142, 210, .28);
  --xauth-text: #f7f9ff;
  --xauth-muted: #8795b4;
  --xauth-muted-2: #657391;
  --xauth-accent: #5b7cff;
  --xauth-accent-2: #7d5cff;
  min-height: 100dvh;
  background: var(--xauth-bg);
}

.acp-auth-route-login,
.acp-auth-route-2fa {
  --xauth-accent: #705cff;
  --xauth-accent-2: #ad4ee9;
}

.customer-auth-route-login::before,
.customer-auth-route-2fa::before,
.acp-auth-route-login::before,
.acp-auth-route-2fa::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(67, 104, 255, .12), transparent 27%),
    radial-gradient(circle at 7% 78%, rgba(27, 199, 255, .055), transparent 25%),
    radial-gradient(circle at 95% 74%, rgba(137, 69, 255, .07), transparent 25%),
    linear-gradient(180deg, rgba(5, 10, 23, .1), rgba(3, 7, 17, .55));
}

/* Shared authentication backdrop — exact image background used by both customer and ACP auth pages. */
.xauth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 7, 18, .12), rgba(2, 7, 18, .20)),
    url('/assets/img/xensec-auth-background.png') center center / cover no-repeat;
}

.xauth-backdrop-grid,
.xauth-backdrop-aurora,
.xauth-backdrop-noise {
  display: none !important;
}

.customer-auth-route-login .xensec-auth-stage-v223,
.customer-auth-route-2fa .xensec-auth-stage-v223,
.acp-auth-route-login .xensec-auth-stage-v223,
.acp-auth-route-2fa .xensec-auth-stage-v223 {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 42px) !important;
}

.customer-auth-route-login .xensec-auth-stack-v223,
.customer-auth-route-2fa .xensec-auth-stack-v223,
.acp-auth-route-login .xensec-auth-stack-v223,
.acp-auth-route-2fa .xensec-auth-stack-v223 {
  width: min(460px, 100%);
  gap: 10px;
}

.xauth {
  width: 100%;
  color: var(--xauth-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.xauth-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--xauth-line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 19%),
    var(--xauth-panel);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(24px) saturate(118%);
  -webkit-backdrop-filter: blur(24px) saturate(118%);
  animation: xauthEnter .34s cubic-bezier(.2,.8,.2,1) both;
}

.xauth-card::before {
  content: "";
  position: absolute;
  inset: 0 14% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 134, 255, .78), transparent);
  opacity: .75;
}

.xauth--acp .xauth-card::before {
  background: linear-gradient(90deg, transparent, rgba(144, 101, 255, .86), transparent);
}

.xauth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.xauth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  text-decoration: none;
}

.xauth-brand img {
  display: block;
  width: 132px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(50, 111, 255, .12));
}

.xauth-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  margin: -3px 0 12px;
  padding: 0 9px;
  border: 1px solid rgba(103, 130, 214, .18);
  border-radius: 999px;
  color: #91a8e8;
  background: rgba(80, 108, 190, .065);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.xauth-badge i,
.xauth-footer i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #42dfa0;
  box-shadow: 0 0 10px rgba(66, 223, 160, .5);
}

.xauth-badge--acp {
  color: #b8a9ff;
  border-color: rgba(137, 103, 255, .20);
  background: rgba(113, 75, 214, .075);
}

.xauth-badge--acp i {
  background: #a58cff;
  box-shadow: 0 0 10px rgba(165, 140, 255, .55);
}

.xauth-header h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.045em;
}

.xauth-header p {
  margin: 9px 0 0;
  color: var(--xauth-muted);
  font-size: 13px;
  line-height: 1.55;
}

.xauth-header p strong {
  color: #c8d1e7;
  font-weight: 650;
}

.xauth-form {
  display: grid;
  gap: 14px;
  margin-top: 25px;
}

.xauth-form--verify {
  margin-top: 20px;
}

.xauth-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.xauth-field > span:first-child {
  color: #b7c2da;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}

.xauth-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 1px solid rgba(116, 139, 198, .19);
  border-radius: 13px;
  background: rgba(2, 7, 18, .55);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.xauth-control:focus-within {
  border-color: color-mix(in srgb, var(--xauth-accent) 64%, transparent);
  background: rgba(3, 9, 23, .76);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--xauth-accent) 10%, transparent);
}

.xauth-control > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-left: 14px;
  color: #68799f;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color .16s ease;
}

.xauth-control:focus-within > svg {
  color: #8ea3e8;
}

.xauth-control input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #f8faff !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 13px;
}

.xauth-control input::placeholder {
  color: #586783;
}

.xauth-field-hint {
  display: block;
  margin: -2px 2px 0;
  color: var(--xauth-muted-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.xauth-control--code input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .035em;
}

.xauth-icon-button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  margin-right: 5px;
  border: 0;
  border-radius: 10px;
  color: #657493;
  background: transparent;
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}

.xauth-icon-button:hover,
.xauth-icon-button.is-visible {
  color: #b4c2e7;
  background: rgba(255,255,255,.045);
}

.xauth-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xauth-primary {
  width: 100%;
  min-height: 50px;
  margin-top: 3px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(112deg, var(--xauth-accent), var(--xauth-accent-2));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--xauth-accent) 20%, transparent);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.xauth-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 15px 35px color-mix(in srgb, var(--xauth-accent) 25%, transparent);
}

.xauth-primary:active:not(:disabled) {
  transform: translateY(0);
}

.xauth-primary:disabled,
.xauth-passkey-button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.xauth-secondary-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--xauth-muted-2);
  font-size: 11px;
}

.xauth-secondary-row a {
  color: #a7b7e6;
  font-weight: 750;
  text-decoration: none;
}

.xauth-secondary-row a:hover,
.xauth-footer a:hover {
  color: #dce4ff;
}

.xauth-secondary-row--center {
  margin-top: 16px;
}

.xauth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #74839f;
  font-size: 10px;
  font-weight: 650;
}

.xauth-security-note svg {
  width: 14px;
  height: 14px;
  color: #7e8fb2;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xauth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(111, 134, 191, .12);
  color: #606f8e;
  font-size: 9.5px;
  font-weight: 650;
}

.xauth-footer > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.xauth-footer a {
  color: #7182a8;
  text-decoration: none;
}

.xauth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 11px;
  border: 1px solid rgba(76, 218, 159, .17);
  border-radius: 12px;
  background: rgba(25, 117, 80, .085);
}

.xauth-alert-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #64e7ad;
  background: rgba(44, 179, 119, .12);
  font-size: 11px;
  font-weight: 900;
}

.xauth-alert strong,
.xauth-alert small {
  display: block;
}

.xauth-alert strong {
  color: #edf3ff;
  font-size: 11px;
}

.xauth-alert small {
  margin-top: 2px;
  color: #7e8dac;
  font-size: 9.5px;
  line-height: 1.4;
}

.xauth-alert--warning {
  border-color: rgba(241, 180, 62, .20);
  background: rgba(127, 82, 20, .10);
}

.xauth-alert--warning .xauth-alert-icon {
  color: #ffc866;
  background: rgba(172, 112, 25, .12);
}

.xauth-alert--danger {
  border-color: rgba(255, 92, 111, .21);
  background: rgba(125, 31, 46, .11);
}

.xauth-alert--danger .xauth-alert-icon {
  color: #ff8b99;
  background: rgba(170, 42, 61, .13);
}

.xauth-passkey {
  margin-top: 21px;
}

.xauth-passkey-button {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(119, 142, 202, .18);
  border-radius: 13px;
  color: #edf3ff;
  background: rgba(3, 9, 22, .46);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.xauth-passkey-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--xauth-accent) 42%, transparent);
  background: rgba(7, 14, 32, .68);
}

.xauth-passkey-button > svg {
  width: 19px;
  height: 19px;
  justify-self: center;
  color: #9bacdf;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xauth-passkey-button span {
  min-width: 0;
}

.xauth-passkey-button strong,
.xauth-passkey-button small {
  display: block;
}

.xauth-passkey-button strong {
  color: #edf2ff;
  font-size: 12px;
  font-weight: 750;
}

.xauth-passkey-button small {
  margin-top: 2px;
  color: #6f7f9f;
  font-size: 9.5px;
  font-weight: 600;
}

.xauth-passkey-button > b {
  color: #667798;
  font-size: 20px;
  font-weight: 400;
}

.xauth-passkey-message {
  display: block;
  min-height: 14px;
  margin: 6px 2px -2px;
  color: #6f7f9e;
  font-size: 9.5px;
  text-align: center;
}

.xauth-passkey-message.ok { color: #5bdc9f; }
.xauth-passkey-message.error { color: #ff8391; }
.xauth-passkey-message.warn { color: #e9b955; }

.xauth-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 17px 0 -3px;
  color: #5e6d8b;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.xauth-divider::before,
.xauth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(111, 135, 193, .13);
}

.customer-auth-route-login .xensec-auth-flash-v223,
.customer-auth-route-2fa .xensec-auth-flash-v223,
.acp-auth-route-login .xensec-auth-flash-v223,
.acp-auth-route-2fa .xensec-auth-flash-v223 {
  width: 100% !important;
}

.customer-auth-route-login .xensec-auth-flash-v223 .customer-flash,
.customer-auth-route-2fa .xensec-auth-flash-v223 .customer-flash,
.acp-auth-route-login .xensec-auth-flash-v223 .flash,
.acp-auth-route-2fa .xensec-auth-flash-v223 .flash {
  border: 1px solid rgba(118, 141, 200, .18) !important;
  border-radius: 12px !important;
  background: rgba(8, 15, 31, .92) !important;
  color: #dfe7fa !important;
  box-shadow: 0 16px 44px rgba(0,0,0,.24) !important;
  font-size: 11px !important;
}

.customer-auth-route-login .xensec-auth-flash-v223 .customer-flash.error,
.customer-auth-route-2fa .xensec-auth-flash-v223 .customer-flash.error,
.acp-auth-route-login .xensec-auth-flash-v223 .flash.error,
.acp-auth-route-2fa .xensec-auth-flash-v223 .flash.error {
  border-color: rgba(255, 87, 107, .22) !important;
  background: rgba(65, 18, 29, .92) !important;
  color: #ffc6ce !important;
}

@keyframes xauthEnter {
  from { opacity: 0; transform: translateY(8px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .customer-auth-route-login .xensec-auth-stage-v223,
  .customer-auth-route-2fa .xensec-auth-stage-v223,
  .acp-auth-route-login .xensec-auth-stage-v223,
  .acp-auth-route-2fa .xensec-auth-stage-v223 {
    justify-content: center !important;
    padding: 14px !important;
  }

  .xauth-card {
    padding: 24px 18px;
    border-radius: 19px;
  }

  .xauth-brand {
    margin-bottom: 17px;
  }

  .xauth-brand img {
    width: 118px;
  }

  .xauth-header h1 {
    font-size: 27px;
  }

  .xauth-form {
    margin-top: 22px;
  }

  .xauth-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xauth-card,
  .xauth-primary,
  .xauth-passkey-button {
    animation: none !important;
    transition: none !important;
  }
}
