html.mtw-land-root:has(body.mtw-auth-body),
html.mtw-land-root body.mtw-auth-body,
.mtw-land-root body.mtw-auth-body,
body.mtw-auth-body {
  background: #020224;
  background-color: #020224;
  color: #f4fffc;
}

html.mtw-land-root body.mtw-auth-body::before,
html.mtw-land-root body.mtw-auth-body::after,
body.mtw-auth-body::before,
body.mtw-auth-body::after {
  display: none;
  content: none;
}

.mtw-auth-body .mtw-h4-footer {
  display: none;
}

.mtw-auth-body .mtw-h4-btn {
  font-family: inherit;
}

.mtw-auth {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: calc(100vh - 88px);
  overflow: hidden;
  color: #f4fffc;
  background: #020224;
}

.mtw-auth__glow,
.mtw-auth__noise {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.mtw-auth__glow--1 {
  background: radial-gradient(42% 50% at 18% 42%, rgba(0, 191, 166, 0.32), transparent 70%);
  animation: mtw-auth-mesh 14s ease-in-out infinite;
}

.mtw-auth__glow--2 {
  background: radial-gradient(38% 46% at 88% 18%, rgba(127, 245, 228, 0.18), transparent 72%);
  animation: mtw-auth-mesh 18s ease-in-out infinite reverse;
}

.mtw-auth__noise {
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.mtw-auth__stage {
  --mx: 50%;
  --my: 40%;
  position: relative;
  min-height: 640px;
  padding: 2.5rem 1.5rem 3rem;
}

.mtw-auth__pointer {
  position: absolute;
  width: 320px;
  height: 320px;
  left: var(--mx);
  top: var(--my);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 166, 0.26), transparent 68%);
  transition: left 0.35s ease, top 0.35s ease;
  z-index: 0;
}

.mtw-auth__rainbow {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -8%;
  z-index: 0;
  pointer-events: none;
  animation: mtw-auth-arc 10s ease-in-out infinite;
}

.mtw-auth__rainbow svg {
  width: 100%;
  height: auto;
  display: block;
}

.mtw-auth__orbit {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 0;
  height: 0;
  z-index: 1;
  pointer-events: none;
}

.mtw-auth__orbit span {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: #7ff5e4;
  box-shadow: 0 0 12px rgba(0, 191, 166, 0.85);
  animation: mtw-auth-orbit 16s linear infinite;
}

.mtw-auth__orbit span:nth-child(1) { animation-duration: 14s; --r: 150px; }
.mtw-auth__orbit span:nth-child(2) { animation-duration: 18s; animation-delay: -3s; --r: 190px; opacity: 0.7; }
.mtw-auth__orbit span:nth-child(3) { animation-duration: 22s; animation-delay: -7s; --r: 230px; opacity: 0.45; }
.mtw-auth__orbit span:nth-child(4) { animation-duration: 12s; animation-delay: -2s; --r: 170px; width: 5px; height: 5px; }
.mtw-auth__orbit span:nth-child(5) { animation-duration: 20s; animation-delay: -9s; --r: 210px; }
.mtw-auth__orbit span:nth-child(6) { animation-duration: 15s; animation-delay: -5s; --r: 260px; opacity: 0.35; }
.mtw-auth__orbit span:nth-child(7) { animation-duration: 24s; animation-delay: -11s; --r: 130px; width: 4px; height: 4px; }
.mtw-auth__orbit span:nth-child(8) { animation-duration: 17s; animation-delay: -1s; --r: 245px; }

.mtw-auth__scan {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 12%;
  height: 42%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.mtw-auth__scan::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7ff5e4, transparent);
  box-shadow: 0 0 18px rgba(0, 191, 166, 0.7);
  animation: mtw-auth-scan 4.8s ease-in-out infinite;
}

.mtw-auth__visual {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: end center;
  min-height: 360px;
}

.mtw-auth__bot {
  width: min(420px, 72%);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 191, 166, 0.22));
  animation: mtw-auth-float 5.5s ease-in-out infinite;
}

.mtw-auth__bot-shadow {
  display: block;
  width: 46%;
  height: 22px;
  margin: -8px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.45), transparent 70%);
  animation: mtw-auth-shadow 5.5s ease-in-out infinite;
}

.mtw-auth-chat {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 0.75rem;
  max-width: 380px;
  margin: 1.4rem auto 0;
}

.mtw-auth-msg {
  max-width: 92%;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

.mtw-auth-msg.is-on {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mtw-auth-msg--in {
  justify-self: start;
  border-end-start-radius: 6px;
}

.mtw-auth-msg--out {
  justify-self: end;
  background: linear-gradient(160deg, rgba(0, 191, 166, 0.32), rgba(0, 122, 110, 0.22));
  border-color: rgba(127, 245, 228, 0.28);
  border-end-end-radius: 6px;
}

.mtw-auth-msg p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  min-height: 1.3em;
}

.mtw-auth-dots {
  display: none;
  gap: 0.28rem;
  padding: 0.15rem 0;
}

.mtw-auth-msg.is-typing .mtw-auth-dots {
  display: inline-flex;
}

.mtw-auth-msg.is-typing p {
  display: none;
}

.mtw-auth-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ff5e4;
  animation: mtw-auth-dot 1s ease-in-out infinite;
}

.mtw-auth-dots i:nth-child(2) { animation-delay: 0.15s; }
.mtw-auth-dots i:nth-child(3) { animation-delay: 0.3s; }

.mtw-auth__chips {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.mtw-auth__chips span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 245, 228, 0.22);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: mtw-auth-chip 4.8s ease-in-out infinite;
}

.mtw-auth__chips span:nth-child(2) { animation-delay: -1.4s; }
.mtw-auth__chips span:nth-child(3) { animation-delay: -2.8s; }

.mtw-auth__panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  perspective: 1400px;
}

.mtw-auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 2rem 1.7rem 1.6rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
  overflow: hidden;
  animation: mtw-auth-card 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mtw-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: mtw-auth-shine 6.5s ease-in-out 1.1s infinite;
}

.mtw-auth-card__eyebrow {
  margin: 0 0 0.45rem;
  color: #7ff5e4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mtw-auth-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.mtw-auth-card__title .mtw-h4-grad {
  background: var(--mtw-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.mtw-auth-card__title .mtw-h4-mark {
  width: 32px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0, 191, 166, 0.55));
}

.mtw-auth-card__lead {
  margin: 0 0 1.4rem;
  color: rgba(244, 255, 252, 0.72);
  font-size: 0.98rem;
}

.mtw-auth-alert {
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(0, 191, 166, 0.16);
  color: #b8fff3;
  font-size: 0.9rem;
}

.mtw-auth-form {
  display: grid;
  gap: 0.85rem;
}

.mtw-auth-field {
  position: relative;
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: rgba(244, 255, 252, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
}

.mtw-auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(2, 2, 36, 0.45);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mtw-auth-field input:focus {
  border-color: #00bfa6;
  background: rgba(2, 2, 36, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 191, 166, 0.18);
}

.mtw-auth-field.is-invalid input {
  border-color: #ff8a94;
}

.mtw-auth-field--pass input,
.mtw-auth-field:has(input[type="password"]) input {
  padding-inline-end: 4.6rem;
}

.mtw-auth-eye {
  position: absolute;
  inset-inline-end: 0.55rem;
  bottom: 0.7rem;
  border: 0;
  background: transparent;
  color: #7ff5e4;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.mtw-auth-error {
  margin-top: -0.35rem;
  color: #ffb3ba;
  font-size: 0.82rem;
}

.mtw-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mtw-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: rgba(244, 255, 252, 0.78);
  font-size: 0.88rem;
  font-weight: 500;
}

.mtw-auth-check input {
  accent-color: #00bfa6;
}

.mtw-auth-link {
  color: #7ff5e4;
  font-weight: 700;
  text-decoration: none;
}

.mtw-auth-link:hover {
  color: #fff;
}

.mtw-auth-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.mtw-auth-submit .mtw-h4-btn__border,
.mtw-auth-submit .mtw-h4-btn__noise {
  width: 100%;
}

.mtw-auth-submit .mtw-h4-btn__text {
  text-align: center;
}

.mtw-auth-foot {
  margin: 1.15rem 0 0;
  color: rgba(244, 255, 252, 0.68);
  font-size: 0.92rem;
}

@keyframes mtw-auth-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes mtw-auth-shadow {
  0%, 100% { transform: scaleX(1); opacity: 0.9; }
  50% { transform: scaleX(0.82); opacity: 0.55; }
}

@keyframes mtw-auth-arc {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50% { transform: translateY(-10px) scale(1.03); opacity: 1; }
}

@keyframes mtw-auth-orbit {
  from { transform: rotate(0deg) translateX(var(--r, 180px)); }
  to { transform: rotate(360deg) translateX(var(--r, 180px)); }
}

@keyframes mtw-auth-scan {
  0% { top: 8%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 88%; opacity: 0; }
}

@keyframes mtw-auth-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes mtw-auth-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes mtw-auth-card {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes mtw-auth-mesh {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -6%) scale(1.08); }
}

@keyframes mtw-auth-shine {
  0%, 68% { transform: translateX(-130%); }
  88%, 100% { transform: translateX(130%); }
}

[dir="rtl"] .mtw-auth {
  grid-template-columns: 0.85fr 1.15fr;
}

[dir="rtl"] .mtw-auth__stage {
  order: 2;
}

[dir="rtl"] .mtw-auth__panel {
  order: 1;
}

@media (max-width: 991px) {
  .mtw-auth {
    grid-template-columns: 1fr;
  }

  .mtw-auth__panel {
    order: 1;
    padding-top: 1.25rem;
  }

  .mtw-auth__stage {
    order: 2;
    min-height: 420px;
    padding-bottom: 2.5rem;
  }

  [dir="rtl"] .mtw-auth {
    grid-template-columns: 1fr;
  }

  [dir="rtl"] .mtw-auth__panel {
    order: 1;
  }

  [dir="rtl"] .mtw-auth__stage {
    order: 2;
  }

  .mtw-auth__bot {
    width: min(280px, 58%);
  }

  .mtw-auth__orbit span:nth-child(n+5) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mtw-auth__bot,
  .mtw-auth__bot-shadow,
  .mtw-auth__rainbow,
  .mtw-auth__orbit span,
  .mtw-auth__chips span,
  .mtw-auth-card,
  .mtw-auth-card::before,
  .mtw-auth__glow--1,
  .mtw-auth__glow--2,
  .mtw-auth__scan::after {
    animation: none;
  }

  .mtw-auth-msg {
    opacity: 1;
    transform: none;
  }
}
