.mw-auth-body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(34, 199, 242, 0.14), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(11, 143, 232, 0.10), transparent 24rem),
    linear-gradient(180deg, #f9fdff 0%, #f3faff 100%);
}

.mw-auth-orb {
  position: fixed;
  z-index: 0;
  border-radius: 10px;
  pointer-events: none;
  filter: blur(12px);
  opacity: 0.95;
}

.mw-auth-orb--one {
  top: -140px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(34, 199, 242, 0.22), rgba(34, 199, 242, 0));
}

.mw-auth-orb--two {
  left: -140px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(11, 143, 232, 0.16), rgba(11, 143, 232, 0));
}

.mw-auth-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 28px;
  display: grid;
  gap: 18px;
  min-height: 100vh;
  flex: 1 0 auto;
}

.mw-auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mw-auth-brand {
  display: inline-grid;
  gap: 4px;
  text-decoration: none;
  color: var(--mw-text);
  width: fit-content;
  line-height: 1;
}

.mw-auth-brand strong {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.mw-auth-brand__mi,
.mw-auth-brand__dot {
  color: #405464;
}

.mw-auth-brand__web {
  color: #0083c1;
}

.mw-auth-brand small {
  color: #667b8b;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.mw-auth-topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #bfe7ff;
  border-radius: 10px;
  background: rgba(232, 247, 255, 0.85);
  box-shadow: var(--mw-shadow-sm);
  color: var(--mw-blue-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.mw-auth-topbar__pill span {
  width: 9px;
  height: 9px;
  border-radius: 10px;
  background: var(--mw-gradient);
  box-shadow: 0 0 0 6px rgba(34, 199, 242, 0.14);
}

.mw-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - 92px);
}

.mw-auth-panel {
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
}

.mw-auth-panel--form {
  display: flex;
  align-items: stretch;
  padding: 10px 0;
}

.mw-auth-panel--form > .mw-auth-card,
.mw-auth-panel--form > .mw-card {
  width: min(100%, 580px);
  height: 100%;
  margin: 0 auto;
}

.mw-auth-panel--art {
  position: relative;
  padding: 34px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    radial-gradient(circle at 72% 50%, rgba(62, 207, 245, 0.34), transparent 34%),
    var(--mw-brand-hero-gradient);
  background-size: 36px 36px, 36px 36px, auto, auto;
  box-shadow: 0 24px 60px rgba(8, 115, 157, 0.22);
  color: var(--mw-white);
}

.mw-auth-art__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 480px;
}

.mw-auth-art__eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.mw-auth-art__content h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.mw-auth-art__content p {
  margin: 0;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
  font-size: 1.03rem;
}

.mw-auth-art__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.mw-auth-art__stats article,
.mw-auth-art__card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.mw-auth-art__stats article {
  padding: 14px 15px;
}

.mw-auth-art__stats strong,
.mw-auth-art__card strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.mw-auth-art__stats span,
.mw-auth-art__card span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mw-auth-art__scene {
  position: absolute;
  inset: auto 28px 28px auto;
  width: min(360px, 42%);
  height: min(320px, 42vw);
}

.mw-auth-art__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.03);
}

.mw-auth-art__ring--large {
  inset: 16px 0 0 18px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 55%);
}

.mw-auth-art__ring--small {
  inset: 84px 34px 0 72px;
  background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.10), transparent 45%);
}

.mw-auth-art__card {
  position: absolute;
  padding: 16px 16px 15px;
}

.mw-auth-art__card--front {
  left: 8px;
  bottom: 30px;
  width: 78%;
  transform: rotate(-8deg);
}

.mw-auth-art__card--back {
  right: 0;
  top: 16px;
  width: 72%;
  transform: rotate(8deg);
}

.mw-auth-card {
  display: grid;
  gap: 20px;
  border-color: #d8eefb;
  box-shadow: 0 22px 48px rgba(6, 107, 179, 0.10);
}

.mw-auth-reset-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.mw-auth-reset-card > .mw-auth-card__header {
  gap: 6px;
}

.mw-auth-reset-card > .mw-auth-card__header h2 {
  font-size: clamp(1.65rem, 2vw, 1.95rem);
}

.mw-auth-reset-card > .mw-auth-card__header p {
  line-height: 1.55;
}

.mw-auth-reset-form {
  gap: 16px;
}

.mw-auth-reset-form .mw-form-group {
  gap: 8px;
}

.mw-auth-reset-form .mw-password-field,
.mw-auth-reset-form .mw-auth-input {
  width: 100%;
}

.mw-auth-reset-form .mw-auth-actions {
  margin-top: 4px;
}

.mw-auth-reset-assurance {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: auto;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid #cfeafa;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fbff 0%, #e9f7ff 100%);
  color: #16425f;
}

.mw-auth-reset-assurance::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 118px;
  height: 118px;
  right: -42px;
  bottom: -70px;
  border: 18px solid rgba(34, 185, 230, 0.10);
  border-radius: 50%;
}

.mw-auth-reset-assurance__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #a8def8;
  border-radius: 14px;
  background: #ffffff;
  color: #0878bf;
  box-shadow: 0 9px 20px rgba(11, 143, 232, 0.12);
}

.mw-auth-reset-assurance__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mw-auth-reset-assurance__copy {
  display: grid;
  gap: 3px;
}

.mw-auth-reset-assurance__copy strong {
  color: #0c3957;
  font-size: 0.96rem;
  font-weight: 900;
}

.mw-auth-reset-assurance__copy > span {
  max-width: 45ch;
  color: #587186;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.mw-auth-login-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mw-auth-login-card > .mw-auth-card__header {
  margin-bottom: 24px;
}

.mw-auth-login-main {
  display: grid;
  gap: 16px;
  flex: 0 0 auto;
  max-width: 100%;
  padding-top: 12px;
}

.mw-auth-login-main > .mw-alert {
  margin: 0;
}

.mw-auth-login-form {
  display: grid;
  gap: 18px;
}

.mw-auth-login-form .mw-auth-remember {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  width: 100%;
  margin: 6px 0 8px;
  padding: 14px 16px;
  border: 1px solid #d2eafa;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbfeff 0%, #f3faff 100%);
  box-shadow: 0 10px 26px rgba(6, 107, 179, 0.07), inset 0 1px 0 #ffffff;
  color: #16324b;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.mw-auth-login-form .mw-auth-remember:hover {
  border-color: #9fdcff;
  box-shadow: 0 13px 30px rgba(6, 107, 179, 0.11), inset 0 1px 0 #ffffff;
  transform: translateY(-1px);
}

.mw-auth-login-form .mw-auth-remember:focus-within {
  border-color: #48bdf4;
  box-shadow: 0 0 0 4px rgba(34, 199, 242, 0.14), 0 13px 30px rgba(6, 107, 179, 0.10);
}

.mw-auth-login-form .mw-auth-remember:has(.mw-auth-remember__input:checked) {
  border-color: #8fd8ff;
  background: linear-gradient(135deg, #f4fbff 0%, #eaf7ff 100%);
}

.mw-auth-login-form .mw-auth-remember__input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.mw-auth-remember__control {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid #9ac9e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(15, 67, 101, 0.08);
  color: #ffffff;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mw-auth-remember__control svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 160ms ease, transform 180ms ease;
}

.mw-auth-remember__input:checked + .mw-auth-remember__control {
  border-color: #0b8fe8;
  background: linear-gradient(135deg, #0878bf 0%, #22b9e6 100%);
  box-shadow: 0 5px 12px rgba(11, 143, 232, 0.26);
  transform: scale(1.03);
}

.mw-auth-remember__input:checked + .mw-auth-remember__control svg {
  opacity: 1;
  transform: scale(1);
}

.mw-auth-remember__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mw-auth-remember__copy strong {
  color: #123b5a;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.mw-auth-remember__copy small {
  color: #61778b;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
}

.mw-auth-login-footer {
  margin-top: auto;
}

.mw-auth-card__header {
  display: grid;
  gap: 8px;
}

.mw-auth-card__header h2 {
  margin: 0;
  color: var(--mw-text);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  letter-spacing: -0.04em;
}

.mw-auth-card__header p {
  margin: 0;
  color: var(--mw-soft-text);
  line-height: 1.65;
}

.mw-auth-form .mw-label {
  color: #16324b;
}

.mw-auth-actions .mw-button.mw-button--ghost {
  background: #ffffff;
  border-color: #bfe7ff;
  color: #066bb3;
}

.mw-auth-actions .mw-button.mw-button--ghost:hover {
  border-color: #8fd8ff;
  background: #f6fbff;
}

.mw-auth-input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #bfe7ff;
  border-radius: 14px;
  background: #f8fcff;
  color: #102033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.mw-auth-country-confirm {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #d2eafa;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbfeff 0%, #f3faff 100%);
  color: #35536a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.mw-auth-country-confirm input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--mw-blue);
  box-shadow: none;
}

.mw-auth-country-confirm:focus-within {
  border-color: #48bdf4;
  box-shadow: 0 0 0 4px rgba(34, 199, 242, 0.12);
}

.mw-auth-form :is(input, select, textarea):focus,
.mw-auth-input:focus {
  outline: none;
  border-color: #0b8fe8;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 143, 232, 0.12);
}

.mw-auth-form :is(input, select, textarea)::placeholder,
.mw-auth-input::placeholder {
  color: #7a8aa0;
}

.mw-auth-password {
  position: relative;
  display: block;
}

.mw-auth-password .mw-auth-input {
  padding-right: 56px;
}

.mw-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 12px;
  background: #f0faff;
  border: 1px solid #bfe7ff;
  color: var(--mw-blue-dark);
  box-shadow: none;
}

.mw-password-field .mw-auth-input {
  padding-right: 56px;
}

.mw-password-field__toggle {
  right: 8px;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-color: transparent;
  color: #066bb3;
}

.mw-password-field__toggle:hover {
  background: rgba(11, 143, 232, 0.10);
  border-color: transparent;
}

.mw-password-field__toggle:focus-visible {
  outline: none;
  background: rgba(11, 143, 232, 0.12);
  box-shadow: 0 0 0 3px rgba(11, 143, 232, 0.16);
}

.mw-password-field__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.mw-password-field__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mw-password-field__toggle[aria-pressed="true"] {
  color: #0b8fe8;
  background: rgba(11, 143, 232, 0.10);
}

.mw-auth-password-toggle:not(.mw-password-field__toggle):hover {
  box-shadow: none;
  transform: translateY(-50%);
  background: #e6f6ff;
  border-color: #8fd8ff;
}

.mw-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
}

.mw-auth-actions .mw-button {
  min-height: 48px;
}

.mw-auth-actions .mw-button:first-child {
  min-width: 162px;
  box-shadow: 0 14px 30px rgba(11, 143, 232, 0.22);
}

.mw-auth-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--mw-border);
  color: var(--mw-muted);
}

.mw-auth-card__footer p {
  margin: 0;
}

.mw-access-body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.mw-access-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 760px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px) 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: clamp(28px, 4vh, 48px);
}

.mw-access-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mw-access-header .mw-auth-brand strong {
  font-size: 2.8rem;
}

.mw-access-header .mw-auth-brand small {
  font-size: 0.75rem;
}

.mw-access-card {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: clamp(32px, 7vw, 64px);
  border-color: #d8eefb;
  text-align: center;
  box-shadow: 0 28px 70px rgba(6, 107, 179, 0.14);
}

.mw-access-card__icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #eaf8ff, #d8f1ff);
  color: #0879c9;
  box-shadow: inset 0 0 0 1px rgba(11, 143, 232, 0.12);
}

.mw-access-card__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mw-access-card__content {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.mw-access-card__content .mw-eyebrow {
  margin: 0;
  color: #0879c9;
}

.mw-access-card__content h1 {
  margin: 0;
  color: var(--mw-text);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.mw-access-card__content p {
  margin: 0;
  color: var(--mw-soft-text);
  line-height: 1.65;
}

.mw-access-card__content .mw-access-card__help {
  max-width: 52ch;
  color: var(--mw-muted);
}

.mw-access-card__actions {
  display: flex;
  justify-content: center;
}

.mw-access-card__actions .mw-button {
  min-height: 50px;
  padding-inline: 24px;
  box-shadow: 0 14px 30px rgba(11, 143, 232, 0.22);
}

@media (max-width: 560px) {
  .mw-access-shell {
    width: min(calc(100% - 24px), 760px);
    padding: 20px 0;
    gap: 32px;
  }

  .mw-access-card {
    padding: 32px 22px;
  }

  .mw-access-card__actions,
  .mw-access-card__actions .mw-button {
    width: 100%;
  }
}

.mw-auth-card .mw-empty-state {
  margin-top: 0;
}

.mw-auth-card .mw-empty-state::before {
  width: 48px;
  height: 48px;
}

.mw-auth-card .mw-empty-state__icon {
  width: 48px;
  height: 48px;
}

.mw-auth-card .mw-empty-state__icon svg {
  width: 27px;
  height: 27px;
}

.mw-auth-card .mw-alert {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .mw-auth-layout {
    grid-template-columns: 1fr;
  }

  .mw-auth-panel--form {
    order: 1;
    display: block;
  }

  .mw-auth-panel--art {
    order: 2;
    min-height: 280px;
  }

  .mw-auth-panel--form > .mw-auth-card,
  .mw-auth-panel--form > .mw-card {
    height: auto;
  }

  .mw-auth-art__scene {
    width: min(320px, 52%);
    height: min(280px, 48vw);
  }
}

@media (max-width: 760px) {
  .mw-auth-shell {
    width: min(100%, calc(100% - 20px));
    padding: 12px 0 20px;
    gap: 14px;
  }

  .mw-auth-topbar {
    align-items: flex-start;
  }

  .mw-auth-panel {
    border-radius: 24px;
  }

  .mw-auth-panel--art {
    padding: 22px 20px 18px;
    min-height: 230px;
    overflow: hidden;
  }

  .mw-auth-art__content {
    max-width: 100%;
    gap: 10px;
  }

  .mw-auth-art__content h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .mw-auth-art__content p {
    font-size: 0.96rem;
  }

  .mw-auth-art__stats {
    grid-template-columns: 1fr;
  }

  .mw-auth-panel--form > .mw-auth-card,
  .mw-auth-panel--form > .mw-card {
    width: 100%;
  }

  .mw-auth-art__scene {
    right: -28px;
    bottom: -26px;
    width: 240px;
    height: 200px;
  }

  .mw-auth-art__card--front {
    width: 84%;
  }

  .mw-auth-art__card--back {
    width: 78%;
  }

  .mw-auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mw-auth-actions .mw-button {
    width: 100%;
  }

  .mw-auth-reset-card {
    padding: 24px 20px;
  }

  .mw-auth-reset-assurance {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .mw-auth-reset-assurance__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .mw-auth-login-card {
    gap: 16px;
    padding: 44px 48px 28px;
  }

  .mw-auth-login-footer {
    margin-top: 24px;
  }

  .mw-auth-card__footer {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .mw-auth-shell {
    width: min(100%, calc(100% - 16px));
  }

  .mw-auth-panel--art {
    min-height: 210px;
  }

  .mw-auth-art__scene {
    width: 210px;
    height: 175px;
  }
}
