.auth-overlay[hidden] {
  display: none;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-overlay__shell {
  position: relative;
  width: min(100%, 32rem);
  margin: 0;
  border-radius: 1.5rem;
  overflow: visible;
}

.auth-overlay__close {
  position: absolute;
  top: 0;
  right: calc(-2.5rem - 0.9rem);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(159, 174, 225, 0.26);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.88) 0%, rgba(66, 81, 124, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 4px 4px rgba(11,15,26,0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  z-index: 2;
}

.auth-overlay__close span {
  position: absolute;
  width: 1rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
}

.auth-overlay__close span:first-child {
  transform: rotate(45deg);
}

.auth-overlay__close span:last-child {
  transform: rotate(-45deg);
}

.mv-auth-modal {
  width: 100%;
  min-height: 100%;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.88) 0%, rgba(66, 81, 124, 0.9) 100%);
  border: 1px solid rgba(159, 174, 225, 0.26);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 4px 4px rgba(11,15,26,0.18);
  padding: 2.75rem 2.4rem 3rem;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.mv-auth-tabs {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.mv-auth-tabs.hidden {
  display: none;
}

.mv-auth-tab {
  position: relative;
  background: none;
  border: none;
  padding: 0 0 0.625rem;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1;
  color: rgba(255,255,255,0.48);
  cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}

.mv-auth-tab.active {
  color: #FFFFFF;
  transform: scale(1.05);
}

.mv-auth-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  border-radius: 10px;
  background: #FFFFFF;
}

.mv-auth-view {
  display: none;
  width: 100%;
  min-height: 100%;
}

.mv-auth-view.active {
  display: block;
}

.mv-auth-form {
  width: min(100%, 22.5rem);
  margin: 0 auto;
}

.mv-field {
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.95);
  margin-bottom: 1.55rem;
}

.mv-field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  height: 2.35rem;
  padding: 0 0 1px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #FFFFFF;
  box-sizing: border-box;
}

.mv-field input::placeholder {
  color: rgba(255,255,255,0.55);
  opacity: 1;
}

.mv-field input:-webkit-autofill,
.mv-field input:-webkit-autofill:hover,
.mv-field input:-webkit-autofill:focus,
.mv-field input:-webkit-autofill:active {
  -webkit-text-fill-color: #FFFFFF;
  caret-color: #FFFFFF;
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-out 0s;
  background-clip: text;
}

.mv-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.15rem;
  margin: 1.9rem auto 0;
  padding: 0.2rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF 0%, #5CE1E6 100%);
  color: #0B0F1A;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--site-shadow-box);
}

.mv-main-btn:hover,
.mv-main-btn:focus-visible {
  transform: scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--site-shadow-box);
}

.mv-auth-check {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  gap: 0.75rem;
  margin: 0.65rem 0 1.3rem;
  cursor: pointer;
  user-select: none;
}

.mv-auth-check input {
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
  flex: 0 0 1rem;
  accent-color: #5CE1E6;
  cursor: pointer;
}

.mv-auth-check__label {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.35;
  color: #FFFFFF;
  flex: 1 1 auto;
  width: 100%;
  white-space: normal;
}

.mv-error {
  display: none;
  margin: -0.35rem 0 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 10px;
  line-height: 1.4;
  color: #ff8f8f;
}

.mv-error.show {
  display: block;
}

.mv-success-box {
  width: min(100%, 22.5rem);
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
}

.mv-success-text {
  text-align: center;
  white-space: pre-line;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: #FFFFFF;
}

.mv-success-text .mv-success-title {
  display: block;
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}

.mv-success-text .mv-success-subtitle {
  display: block;
  font-size: 14px;
  line-height: 1.9;
}

.mv-success-btn {
  margin-top: 0;
  max-width: 100%;
  color: #0B0F1A !important;
}

.mv-success-btn:first-of-type {
  margin-top: 1.1rem;
}

.mv-success-btn--secondary {
  border: 2px solid #5CE1E6;
  background: transparent;
  color: #5CE1E6 !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), var(--site-shadow-box);
}

@media (max-width: 767px) {
  .auth-overlay__shell {
    width: min(100%, 30rem);
    border-radius: 1.25rem;
  }

  .mv-auth-modal {
    border-radius: 1.25rem;
    padding: 2.2rem 1.5rem 2.4rem;
  }

  .mv-auth-form,
  .mv-success-box {
    width: min(100%, 21rem);
  }

  .mv-auth-tab {
    font-size: 19px;
  }
}
