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

:root {
  --mdx-auth-bg: #0a0008;
  --mdx-auth-red: #ff1f3d;
  --mdx-auth-blue: #4737cd;
  --mdx-auth-panel: rgba(255, 255, 255, .13);
  --mdx-auth-panel-strong: rgba(255, 255, 255, .2);
  --mdx-auth-line: rgba(255, 255, 255, .24);
  --mdx-auth-text: #ffffff;
  --mdx-auth-muted: rgba(255, 255, 255, .72);
  --mdx-auth-shadow: 0 28px 80px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .24);
}

* {
  box-sizing: border-box;
}

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

body.mdx-auth-body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  overflow-x: hidden;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--mdx-auth-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 0, 0, .96) 0 18vw, transparent 18.4vw),
    radial-gradient(circle at 88% 14%, rgba(177, 0, 37, .86) 0 24vw, transparent 24.5vw),
    radial-gradient(circle at 78% 88%, rgba(255, 31, 61, .82) 0 25vw, transparent 25.5vw),
    radial-gradient(circle at 50% 46%, rgba(71, 55, 205, .28), transparent 34%),
    linear-gradient(135deg, #080006 0%, #3b001b 48%, #8b001d 100%);
}

body.mdx-auth-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, .75), transparent 74%);
}

.mdx-auth-ribbon,
.mdx-auth-ribbon::before,
.mdx-auth-ribbon::after {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 31, 61, .18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 28px 80px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

.mdx-auth-ribbon {
  width: min(44vw, 520px);
  height: min(70vw, 780px);
  right: -15vw;
  top: 8vh;
  transform: rotate(30deg);
}

.mdx-auth-ribbon::before {
  content: "";
  width: 62%;
  height: 78%;
  left: -52%;
  top: 48%;
  transform: rotate(-16deg);
}

.mdx-auth-ribbon::after {
  content: "";
  width: 58%;
  height: 58%;
  left: 10%;
  top: -24%;
  transform: rotate(18deg);
}

.mdx-auth-card {
  width: min(100%, 560px);
  max-height: calc(100vh - clamp(28px, 6vw, 68px));
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  padding: clamp(26px, 5vw, 48px);
  border-radius: clamp(24px, 4vw, 34px);
  border: 1px solid var(--mdx-auth-line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08) 38%, rgba(255, 31, 61, .18) 100%),
    var(--mdx-auth-panel);
  box-shadow: var(--mdx-auth-shadow);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .3) transparent;
}

.mdx-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 31, 61, .34), transparent 34%),
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, .18), transparent 22%);
}

.mdx-auth-card > * {
  position: relative;
  z-index: 1;
}

.mdx-logo-mark {
  width: 74px;
  height: 74px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: linear-gradient(135deg, rgba(71, 55, 205, .84), rgba(255, 31, 61, .72));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.mdx-logo-mark span {
  position: absolute;
  width: 18px;
  height: 48px;
  border-radius: 999px;
  transform: rotate(42deg);
  background: #fff;
  opacity: .94;
}

.mdx-logo-mark span:first-child {
  left: 26px;
}

.mdx-logo-mark span:last-child {
  left: 40px;
  top: 25px;
  height: 31px;
  opacity: .72;
}

.mdx-logo-mark img {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

.mdx-logo-mark:has(img)::before {
  content: none;
}

.mdx-logo-mark:has(img) {
  width: 190px;
  height: 88px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(14, 21, 38, .08);
}

.mdx-brand {
  margin: 0;
  max-width: 100%;
  font-size: clamp(20px, 4vw, 25px);
  font-weight: 800;
  line-height: 1.16;
  text-align: center;
  color: #fff;
  text-shadow: 0 16px 42px rgba(0, 0, 0, .42);
}

.mdx-auth-title {
  margin: clamp(22px, 5vw, 36px) 0 clamp(22px, 4vw, 30px);
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  color: #fff;
}

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

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

.mdx-field label {
  display: block;
  margin: 0 0 10px 4px;
  color: var(--mdx-auth-muted);
  font-size: 13px;
  font-weight: 800;
}

.mdx-field input,
.mdx-field select {
  width: 100%;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  outline: 0;
  padding: 0 18px;
  color: #fff;
  font: 700 16px/1 'Inter', Arial, sans-serif;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mdx-field input:focus,
.mdx-field select:focus {
  border-color: rgba(255, 255, 255, .54);
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 4px rgba(71, 55, 205, .18), inset 0 1px 0 rgba(255, 255, 255, .16);
  transform: translateY(-1px);
}

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

.mdx-field input::placeholder {
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
}

.mdx-row-link {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: -3px 0 22px;
  color: var(--mdx-auth-muted);
  font-size: 14px;
  font-weight: 700;
}

.mdx-row-link label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

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

.mdx-row-link a:hover,
.mdx-auth-bottom a:hover,
.mdx-support a:hover {
  text-decoration: underline;
}

.mdx-auth-btn {
  width: 100%;
  min-height: 60px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  color: #fff;
  font: 800 18px/1 'Inter', Arial, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--mdx-auth-blue), var(--mdx-auth-red));
  box-shadow: 0 18px 34px rgba(71, 55, 205, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.mdx-auth-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 24px 44px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.mdx-auth-bottom {
  width: 100%;
  margin-top: auto;
  padding-top: clamp(24px, 5vw, 38px);
  color: var(--mdx-auth-muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.mdx-support {
  margin-top: 13px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.mdx-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: -4px 0 22px;
  color: var(--mdx-auth-muted);
  font-size: 13px;
  font-weight: 700;
}

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

.mdx-auth-error {
  width: 100%;
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 31, 61, .22);
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 800;
}

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

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

.mdx-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 0, 8, .72);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition: opacity .22s ease;
}

.mdx-popup-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mdx-popup {
  width: min(100%, 410px);
  padding: 30px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .09) 44%, rgba(255, 31, 61, .18)),
    rgba(255, 255, 255, .12);
  box-shadow: var(--mdx-auth-shadow);
  transform: translateY(12px) scale(.98);
  transition: transform .22s ease;
}

.mdx-popup-overlay.is-visible .mdx-popup {
  transform: translateY(0) scale(1);
}

.mdx-popup-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 24px;
  font-size: 34px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, .26);
  background: linear-gradient(135deg, var(--mdx-auth-blue), var(--mdx-auth-red));
  box-shadow: 0 18px 36px rgba(0, 0, 0, .32);
}

.mdx-popup-success .mdx-popup-icon {
  background: linear-gradient(135deg, #20bd68, #44e48a);
}

.mdx-popup-warning .mdx-popup-icon {
  background: linear-gradient(135deg, #f59e0b, #ff1f3d);
}

.mdx-popup h3 {
  margin: 0 0 9px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}

.mdx-popup p {
  margin: 0;
  color: var(--mdx-auth-muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.mdx-popup-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  font: 800 15px/1 'Inter', Arial, sans-serif;
  cursor: pointer;
}

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

@media (max-width: 760px) {
  body.mdx-auth-body {
    place-items: start center;
    padding: 12px;
  }

  .mdx-auth-ribbon {
    width: 70vw;
    height: 105vw;
    right: -36vw;
    top: 8vh;
  }

  .mdx-auth-card {
    width: 100%;
    max-height: none;
    min-height: calc(100vh - 24px);
    padding: 24px 18px;
    border-radius: 24px;
  }

  .mdx-logo-mark {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .mdx-logo-mark span {
    width: 15px;
    height: 40px;
  }

  .mdx-logo-mark span:first-child {
    left: 22px;
  }

  .mdx-logo-mark span:last-child {
    left: 34px;
    top: 22px;
    height: 26px;
  }

  .mdx-row-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

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

  .mdx-popup {
    padding: 24px 18px;
    border-radius: 24px;
  }
}

@media (max-width: 380px) {
  .mdx-brand {
    font-size: 19px;
  }

  .mdx-auth-title {
    font-size: 25px;
  }

  .mdx-field input,
  .mdx-field select {
    padding: 0 14px;
    font-size: 15px;
  }
}

/* Blue login reference theme */
:root {
  --mdx-auth-bg: #f7f9fc;
  --mdx-auth-blue: #0b5bea;
  --mdx-auth-blue-2: #0f6dff;
  --mdx-auth-text: #111827;
  --mdx-auth-muted: #4b5563;
  --mdx-auth-line: #dfe5ee;
  --mdx-auth-shadow: 0 18px 45px rgba(31, 75, 140, .10);
}

body.mdx-auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--mdx-auth-text);
  background:
    linear-gradient(rgba(15, 109, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 109, 255, .04) 1px, transparent 1px),
    radial-gradient(circle at 50% 13%, rgba(11, 91, 234, .10), transparent 90px),
    #f8fafc;
  background-size: 24px 24px, 24px 24px, auto, auto;
}

body.mdx-auth-body::before {
  content: "";
  position: fixed;
  width: 420px;
  height: 220px;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(11, 91, 234, .12) 0 9px, transparent 10px),
    radial-gradient(circle at 70% 18%, rgba(11, 91, 234, .10) 0 10px, transparent 11px),
    linear-gradient(rgba(148, 163, 184, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .12) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px, 24px 24px;
  opacity: .9;
}

body.mdx-auth-body::after,
.mdx-auth-ribbon {
  display: none;
}

.mdx-auth-card {
  width: min(100%, 392px);
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mdx-auth-card::before {
  display: none;
}

.mdx-auth-card > * {
  z-index: 1;
}

.mdx-logo-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #2385ff, #0b56dc);
  box-shadow: 0 14px 28px rgba(11, 91, 234, .22), inset 0 1px 0 rgba(255,255,255,.35);
}

.mdx-logo-mark::before {
  content: "\eb4d";
  font-family: boxicons;
  color: #fff;
  font-size: 28px;
}

.mdx-logo-mark span {
  display: none;
}

.mdx-brand {
  display: none;
}

.mdx-auth-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}

.mdx-auth-title::after {
  content: "Enter your registered email address and password to login!";
  display: block;
  margin-top: 9px;
  color: #374151;
  font-size: 12px;
  font-weight: 400;
}

.mdx-auth-form {
  width: 100%;
  margin-top: 42px;
}

.mdx-field {
  position: relative;
  margin-bottom: 18px;
}

.mdx-field label {
  margin: 0 0 9px;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
}

.mdx-field input,
.mdx-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--mdx-auth-line);
  border-radius: 8px;
  padding: 0 42px;
  color: #111827;
  background: #fff;
  font: 500 13px/1 'Inter', Arial, sans-serif;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04), inset 0 1px 0 rgba(255,255,255,.75);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.mdx-field select {
  padding-left: 14px;
}

.mdx-field::before {
  position: absolute;
  left: 13px;
  bottom: 10px;
  z-index: 2;
  color: #6b7280;
  font-family: boxicons;
  font-size: 17px;
}

.mdx-field:nth-of-type(1)::before { content: "\ea07"; }
.mdx-field:nth-of-type(2)::before { content: "\eca7"; }
.mdx-field:nth-of-type(3)::before { content: "\ec63"; }
.mdx-field:nth-of-type(4)::before { content: "\eca7"; }
.mdx-field:nth-of-type(5)::before { content: "\eca7"; }

.mdx-field:has(input[type="password"])::after {
  content: "\ecb5";
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: #9ca3af;
  font-family: boxicons;
  font-size: 17px;
}

.mdx-field input::placeholder {
  color: #6b7280;
  font-weight: 400;
}

.mdx-field input:focus,
.mdx-field select:focus {
  border-color: #b9cdfc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 91, 234, .09), 0 10px 24px rgba(11, 91, 234, .08);
  transform: none;
}

.mdx-row-link {
  margin: -4px 0 17px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 400;
}

.mdx-row-link label {
  gap: 7px;
}

.mdx-row-link input,
.mdx-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--mdx-auth-blue);
}

.mdx-row-link a,
.mdx-auth-bottom a,
.mdx-support a {
  color: #0b5bea;
  font-weight: 600;
}

.mdx-auth-btn {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(180deg, #0f6dff, #0b56dc);
  box-shadow: 0 12px 28px rgba(11, 91, 234, .24);
  font: 600 13px/1 'Inter', Arial, sans-serif;
  letter-spacing: 0;
}

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

.mdx-auth-bottom {
  width: 100%;
  margin-top: 18px;
  padding-top: 0;
  color: #4b5563;
  font-size: 12px;
}

.mdx-support {
  margin-top: 9px;
  color: #64748b;
  font-size: 12px;
}

.mdx-check {
  margin: -3px 0 17px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 400;
}

.mdx-auth-error {
  margin: 22px 0 0;
  color: #b42318;
  background: #fff5f4;
  border: 1px solid #ffd4cf;
  border-radius: 10px;
  font-size: 13px;
}

.mdx-processing {
  background: rgba(248, 250, 252, .78);
  backdrop-filter: blur(10px);
}

.mdx-loader {
  border-color: rgba(11, 91, 234, .16);
  border-top-color: var(--mdx-auth-blue);
}

.mdx-popup-overlay {
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(14px);
}

.mdx-popup {
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid #e5ebf4;
  border-radius: 16px;
  color: #111827;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .18);
}

.mdx-popup-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(180deg, #2385ff, #0b56dc);
  box-shadow: 0 14px 28px rgba(11, 91, 234, .22);
  font-size: 18px;
}

.mdx-popup-success .mdx-popup-icon { background: linear-gradient(180deg, #27c774, #0fa85b); }
.mdx-popup-warning .mdx-popup-icon { background: linear-gradient(180deg, #f59e0b, #f97316); }

.mdx-popup h3 {
  color: #111827;
  font-size: 20px;
  font-weight: 650;
}

.mdx-popup p {
  color: #4b5563;
  font-size: 13px;
  font-weight: 400;
}

.mdx-popup-btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #0f6dff, #0b56dc);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 760px) {
  body.mdx-auth-body {
    place-items: center;
    padding: 18px;
  }

  body.mdx-auth-body::before {
    width: 100%;
    top: 6%;
  }

  .mdx-auth-card {
    min-height: 0;
    width: min(100%, 392px);
    padding: 0;
    border-radius: 0;
  }

  .mdx-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .mdx-row-link {
    flex-direction: row;
    align-items: center;
  }

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

@media (max-width: 420px) {
  body.mdx-auth-body {
    padding: 18px 22px;
  }

  .mdx-auth-title {
    font-size: 21px;
  }

  .mdx-auth-form {
    margin-top: 36px;
  }

  .mdx-row-link {
    gap: 10px;
  }
}
