body.mpay-auth-open {
  overflow-x: hidden;
  background: #050a12;
}

.mpay-auth-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(20px, 4vh, 40px) 20px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #050a12 !important;
}

.mpay-auth-media {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: #050a12;
}

.mpay-auth-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}

.mpay-auth-media.is-video-ready .mpay-auth-video {
  opacity: 1;
}

.mpay-auth-media.is-video-unavailable .mpay-auth-video,
.mpay-auth-media.is-reduced-motion .mpay-auth-video {
  display: none;
}

.mpay-auth-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(2, 10, 24, 0.03) 0%, rgba(2, 9, 21, 0.17) 62%, rgba(2, 8, 19, 0.3) 100%),
    linear-gradient(180deg, rgba(3, 10, 23, 0.08), rgba(3, 10, 23, 0.2));
}

.mpay-auth-legacy-background {
  display: none !important;
}

.mpay-auth-content {
  z-index: 2 !important;
  width: min(100%, 430px) !important;
  max-width: 430px !important;
  margin: auto;
  animation: mpay-auth-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mpay-auth-brand {
  margin-bottom: 24px !important;
  color: #f8fbff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.mpay-auth-brand > div:first-child {
  width: 72px !important;
  height: 72px !important;
  margin-bottom: 12px !important;
  border-radius: 16px !important;
  background: rgba(6, 17, 35, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mpay-auth-logo {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain;
}

.mpay-auth-brand h1 {
  color: #fff !important;
  font-size: clamp(28px, 4vw, 34px) !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

.mpay-auth-brand p {
  margin-top: 7px !important;
  color: rgba(235, 243, 255, 0.74) !important;
  font-size: 14px !important;
}

.mpay-auth-card {
  position: relative;
  padding: 30px !important;
  border: 1px solid rgba(117, 176, 255, 0.3) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(8, 23, 46, 0.72), rgba(5, 14, 29, 0.62)) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  overflow: hidden;
}

.mpay-auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 154, 255, 0.8), transparent);
  pointer-events: none;
}

.mpay-auth-card h2 {
  margin-bottom: 22px !important;
  color: #f7faff !important;
  font-size: 21px !important;
  line-height: 1.3;
  letter-spacing: 0 !important;
}

.mpay-auth-form {
  gap: 15px;
}

.mpay-auth-card input {
  height: 48px !important;
  border: 1px solid rgba(125, 166, 219, 0.2) !important;
  border-radius: 11px !important;
  background: rgba(12, 25, 46, 0.7) !important;
  color: #f7faff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease !important;
}

.mpay-auth-card input::placeholder {
  color: rgba(204, 219, 240, 0.48) !important;
}

.mpay-auth-card input:hover {
  border-color: rgba(96, 165, 250, 0.38) !important;
  background: rgba(14, 30, 54, 0.78) !important;
}

.mpay-auth-card input:focus,
.mpay-auth-card input:focus-visible {
  border-color: #4096f7 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(64, 150, 247, 0.16) !important;
}

.mpay-auth-card input:-webkit-autofill,
.mpay-auth-card input:-webkit-autofill:hover,
.mpay-auth-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f7faff !important;
  caret-color: #f7faff;
  box-shadow: 0 0 0 1000px #0d203b inset, 0 0 0 3px rgba(64, 150, 247, 0.12) !important;
  transition: background-color 9999s ease-out 0s;
}

.mpay-auth-card form svg {
  color: rgba(196, 216, 242, 0.58) !important;
}

.mpay-auth-card form > button[type="submit"] {
  height: 48px !important;
  border: 1px solid rgba(128, 188, 255, 0.38) !important;
  border-radius: 11px !important;
  background: #3d96f5 !important;
  color: #03101f !important;
  box-shadow: 0 12px 28px rgba(40, 135, 242, 0.26) !important;
  font-weight: 700 !important;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease !important;
}

.mpay-auth-card form > button[type="submit"]:hover:not(:disabled) {
  background: #58a7fa !important;
  box-shadow: 0 15px 34px rgba(40, 135, 242, 0.34) !important;
  transform: translateY(-1px);
}

.mpay-auth-card form > button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

.mpay-auth-card form > button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.62 !important;
}

.mpay-auth-card button:not([type="submit"]) {
  color: rgba(215, 228, 247, 0.66) !important;
}

.mpay-auth-card button:not([type="submit"]):hover {
  color: #62adff !important;
}

.mpay-auth-card p,
.mpay-auth-card label {
  color: rgba(215, 228, 247, 0.66) !important;
}

.mpay-auth-card p button {
  color: #62adff !important;
}

@keyframes mpay-auth-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mpay-auth-content {
    animation: none;
  }

  .mpay-auth-video,
  .mpay-auth-card *,
  .mpay-auth-card *::before,
  .mpay-auth-card *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .mpay-auth-page {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)) !important;
  }

  .mpay-auth-content {
    width: 100% !important;
    margin: auto;
  }

  .mpay-auth-brand {
    margin-bottom: 18px !important;
  }

  .mpay-auth-brand > div:first-child,
  .mpay-auth-logo {
    width: 62px !important;
    height: 62px !important;
  }

  .mpay-auth-brand h1 {
    font-size: 28px !important;
  }

  .mpay-auth-card {
    padding: 24px 22px !important;
    border-radius: 16px !important;
  }
}

@media (max-height: 690px) and (min-width: 641px) {
  .mpay-auth-page {
    align-items: flex-start !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .mpay-auth-content {
    margin: auto;
  }

  .mpay-auth-brand {
    margin-bottom: 16px !important;
  }

  .mpay-auth-brand > div:first-child,
  .mpay-auth-logo {
    width: 58px !important;
    height: 58px !important;
  }
}
