@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.mdx-auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow-x: hidden;
  font-family: 'Inter', Arial, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at 50% 18%, rgba(153, 84, 255, .33), transparent 28%),
    radial-gradient(circle at 16% 92%, rgba(145, 55, 255, .38), transparent 34%),
    #160024;
}

.mdx-auth-ribbon,
.mdx-auth-ribbon::before,
.mdx-auth-ribbon::after {
  position: fixed;
  pointer-events: none;
  border-radius: 46% 54% 48% 52%;
  border: 34px solid rgba(183, 105, 255, .58);
  box-shadow: 0 0 44px rgba(185, 92, 255, .54), inset 0 0 34px rgba(255, 255, 255, .18);
}

.mdx-auth-ribbon {
  width: 520px;
  height: 760px;
  right: -150px;
  top: 85px;
  transform: rotate(32deg);
  opacity: .82;
}

.mdx-auth-ribbon::before {
  content: "";
  width: 380px;
  height: 660px;
  left: -380px;
  top: 380px;
  transform: rotate(-18deg);
}

.mdx-auth-ribbon::after {
  content: "";
  width: 340px;
  height: 520px;
  left: -70px;
  top: -175px;
  border-width: 28px;
  transform: rotate(22deg);
  opacity: .7;
}

.mdx-auth-card {
  width: min(100%, 650px);
  min-height: 760px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 46px 42px;
  border-radius: 52px;
  border: 2px solid rgba(234, 211, 255, .58);
  background:
    radial-gradient(circle at 62% 35%, rgba(130, 58, 255, .34), transparent 26%),
    linear-gradient(145deg, rgba(83, 28, 124, .30), rgba(20, 0, 36, .64));
  box-shadow: 0 42px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px);
}

.mdx-logo-mark {
  width: 86px;
  height: 86px;
  position: relative;
  margin-bottom: 14px;
}

.mdx-logo-mark span {
  position: absolute;
  left: 25px;
  width: 30px;
  height: 74px;
  border-radius: 999px;
  transform: rotate(43deg);
  background: linear-gradient(180deg, #a98cff, #27165f);
  border: 2px solid rgba(224, 205, 255, .75);
  box-shadow: 0 12px 28px rgba(103, 59, 215, .4);
}

.mdx-logo-mark span:last-child {
  left: 47px;
  top: 23px;
  height: 48px;
}

.mdx-brand {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .82);
  text-align: center;
}

.mdx-auth-title {
  margin: 42px 0 34px;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  color: rgba(255, 255, 255, .92);
}

.mdx-auth-form {
  width: 100%;
}

.mdx-field {
  margin-bottom: 24px;
}

.mdx-field label {
  display: block;
  margin: 0 0 13px 16px;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  font-weight: 500;
}

.mdx-field input,
.mdx-field select {
  width: 100%;
  height: 74px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, .92);
  outline: 0;
  padding: 0 20px;
  color: #fff;
  font: 600 18px/1 'Inter', Arial, sans-serif;
  background: rgba(22, 0, 40, .24);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, .04);
}

.mdx-field select option {
  color: #171029;
}

.mdx-field input::placeholder {
  color: rgba(255, 255, 255, .55);
}

.mdx-row-link {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: -6px 0 26px;
  padding: 0 16px;
  color: rgba(255, 255, 255, .9);
  font-size: 17px;
}

.mdx-row-link a,
.mdx-auth-bottom a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.mdx-auth-btn {
  width: 100%;
  min-height: 74px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 16px;
  color: #fff;
  font: 800 28px/1 'Inter', Arial, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  background: linear-gradient(180deg, #c681ff, #965ce9);
  box-shadow: 0 18px 34px rgba(149, 78, 234, .34), inset 0 1px 0 rgba(255, 255, 255, .32);
  transition: transform .2s ease, filter .2s ease;
}

.mdx-auth-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.mdx-auth-bottom {
  margin-top: auto;
  padding-top: 44px;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
  text-align: center;
}

.mdx-support {
  margin-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.mdx-support a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.mdx-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: -4px 0 22px;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
}

.mdx-check input {
  margin-top: 3px;
}

.mdx-processing {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 20;
  align-items: center;
  justify-content: center;
  background: rgba(10, 0, 22, .72);
}

.mdx-loader {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, .28);
  border-top-color: #c681ff;
  animation: mdx-spin .8s linear infinite;
}

@keyframes mdx-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  body.mdx-auth-body {
    align-items: flex-start;
    padding: 20px 14px;
  }

  .mdx-auth-card {
    min-height: calc(100vh - 40px);
    padding: 36px 24px 30px;
    border-radius: 38px;
  }

  .mdx-auth-title {
    margin: 30px 0 26px;
  }

  .mdx-field label {
    font-size: 15px;
  }

  .mdx-field input,
  .mdx-field select,
  .mdx-auth-btn {
    min-height: 58px;
    height: 58px;
  }

  .mdx-auth-btn {
    font-size: 22px;
  }

  .mdx-auth-bottom {
    font-size: 16px;
    padding-top: 30px;
  }
}
