/* Maya sign-in appearance. The SellAuth appCustomer flow remains native. */
.maya-auth {
  z-index: 1000;
  color: #f7f5ef;
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  overscroll-behavior: contain;
}

.maya-auth__viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  box-sizing: border-box;
}

.maya-auth__backdrop {
  background: #050508d9;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.maya-auth__panel {
  position: relative;
  width: 100%;
  max-width: 448px;
  margin-block: 24px;
  padding: 32px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #ffffff14;
  border-radius: 24px;
  background: #1a1b25;
  box-shadow: 0 30px 100px #0009;
  text-align: start;
}

.maya-auth__header {
  position: relative;
  margin-bottom: 26px;
  text-align: center;
}

.maya-auth__logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.maya-auth__title {
  max-width: 330px;
  margin: 0 auto;
  color: #fff;
  font-family: 'Clash Display', Inter, system-ui, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  word-spacing: .14em;
}

.maya-auth__subtitle {
  margin: 9px 0 0;
  color: #bdbacf;
  font-size: 12px;
  line-height: 1.6;
}

.maya-auth__close {
  position: absolute;
  inset-inline-end: -14px;
  top: -14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8b8ca0;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.maya-auth__close:hover {
  background: #ffffff0c;
  color: #fff;
}

.maya-auth__close svg {
  width: 20px;
  height: 20px;
}

.maya-auth__form label {
  display: block;
  color: #c4c1ce;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.maya-auth__form small {
  display: block;
  margin-top: 5px;
  color: #92909f;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.maya-auth__field {
  position: relative;
}

.maya-auth__field-icon {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #8b8ca0;
  pointer-events: none;
}

.maya-auth .maya-auth__input,
.maya-auth .maya-auth__digit {
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ffffff16;
  border-radius: 11px;
  background: #111218;
  color: #f7f5ef;
  caret-color: #ffc56f;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.maya-auth .maya-auth__input {
  padding: 12px 14px;
}

.maya-auth .maya-auth__input--icon {
  padding-inline-start: 43px;
}

.maya-auth .maya-auth__input::placeholder {
  color: #686977;
  opacity: 1;
}

.maya-auth .maya-auth__input:focus,
.maya-auth .maya-auth__digit:focus {
  border-color: #efa63a;
  box-shadow: 0 0 0 3px #efa63a12;
}

.maya-auth .maya-auth__input[aria-invalid="true"],
.maya-auth .maya-auth__digit[aria-invalid="true"] {
  border-color: #fb718580;
}

.maya-auth :is(.maya-auth__input, .maya-auth__digit):is(:autofill, :-webkit-autofill) {
  box-shadow: 0 0 0 1000px #111218 inset;
  -webkit-text-fill-color: #f7f5ef;
}

.maya-auth__primary,
.maya-auth__discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.maya-auth__primary {
  margin-top: 18px;
  border-color: #efa63a;
  background: #efa63a;
  color: #17110b;
}

.maya-auth__primary:enabled:hover {
  border-color: #ffc56f;
  background: #ffc56f;
}

.maya-auth__discord {
  border-color: #747ffa4d;
  background: #5865f2;
  color: #fff;
}

.maya-auth__discord:enabled:hover {
  background: #4752c4;
}

.maya-auth__primary svg,
.maya-auth__discord svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.maya-auth :is(.maya-auth__primary, .maya-auth__discord, .maya-auth__link):disabled {
  opacity: .5;
  cursor: wait;
}

.maya-auth__switch,
.maya-auth__link {
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #ffc56f;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-underline-offset: 4px;
  cursor: pointer;
}

.maya-auth__switch {
  display: block;
  margin: 12px auto 0;
  padding: 5px 8px;
}

.maya-auth__link {
  flex: none;
  margin-inline-start: auto;
  padding: 0;
}

.maya-auth__switch:hover,
.maya-auth__link:enabled:hover {
  color: #ffe0ac;
  text-decoration: underline;
}

.maya-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #92909f;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.maya-auth__divider::before,
.maya-auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ffffff12;
}

.maya-auth .maya-auth__error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #fb71852e;
  border-radius: 10px;
  background: #fb71850a;
  color: #fda4af;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.maya-auth__digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.maya-auth .maya-auth__digit {
  min-width: 0;
  height: 52px;
  padding: 8px 0;
  text-align: center;
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.maya-auth :is(button, input, a):focus-visible {
  outline: 2px solid #efa63a;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .maya-auth__viewport {
    padding: 14px;
  }

  .maya-auth__panel {
    padding: 28px 22px;
    margin-block: 14px;
    border-radius: 20px;
  }

  .maya-auth__close {
    inset-inline-end: -8px;
    top: -12px;
  }

  .maya-auth__title {
    font-size: 23px;
  }

  .maya-auth__digits {
    gap: 6px;
  }

  .maya-auth .maya-auth__input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maya-auth,
  .maya-auth * {
    animation: none !important;
    transition: none !important;
  }
}