@font-face {
  font-family: Montserrat;
  src: url('../fonts/Montserrat-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

body.task-login .m2-login-shell { background: #f8f6f1; }
body.task-login .m2-login-panel { background: #f8f6f1; }
body.task-login .m2-login-card {
  width: min(100%, 380px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #1f2421;
  font-family: Montserrat, 'Segoe UI', sans-serif;
}
body.task-login .m2-login-brand { text-align: left; margin-bottom: 25px; }
body.task-login .m2-login-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2421;
  font-size: 17px;
  letter-spacing: .045em;
}
body.task-login .m2-login-mark {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: url('../images/maridao-approved-symbol.png') center/contain no-repeat;
}
body.task-login .m2-login-brand-subtitle {
  margin: 15px 0 0;
  color: #1f2421;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 750;
  line-height: 1.23;
}
body.task-login .m2-login-form td.title {
  display: block !important;
  padding: 0;
  color: #1f2421;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}
body.task-login .m2-login-form td.title label { margin: 0 0 6px; }
body.task-login .m2-login-form td.input.input-group { height: 48px; }
body.task-login .m2-login-form td.input.input-group input.form-control {
  height: 48px;
  color: #1f2421;
  background: #fff;
  border-color: #c6cac2;
  font-size: 16px;
}
body.task-login .m2-login-form td.input.input-group input::placeholder { color: transparent; }
body.task-login .m2-login-form .formbuttons { margin-top: 12px; }
body.task-login #rcmloginsubmit { background: #7a1f2b; box-shadow: none; min-height: 48px; }
body.task-login #rcmloginsubmit:hover { background: #681925; box-shadow: none; }
body.task-login .m2-login-footer { margin-top: 14px; color: #59615c; text-transform: none; letter-spacing: 0; }

body.task-login .m2-login-hero {
  background: #e1ded7 url('../images/balloon-desktop-20261122.webp') center/contain no-repeat;
  isolation: isolate;
}
.m2-login-motion-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.m2-login-motion-toggle {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgb(31 36 33 / 84%);
  cursor: pointer;
}
.m2-login-motion-toggle[hidden], .m2-login-motion-video[hidden] { display: none; }
.m2-login-motion-toggle:focus-visible { outline: 2px solid white; outline-offset: -5px; }
.m2-login-motion-icon { font-size: 15px; }

@media (max-width: 920px) {
  body.task-login .m2-login-shell { grid-template-rows: auto 1fr; }
  body.task-login .m2-login-hero {
    display: block;
    width: min(calc(100% - 40px), 244px, 48svh);
    height: auto;
    aspect-ratio: 480 / 502;
    min-height: 0;
    margin: max(12px, env(safe-area-inset-top)) auto 0;
    border-radius: 12px;
    background: #f8f6f1 url('../images/balloon-phone-20261122-full.webp') center/contain no-repeat;
  }
  body.task-login .m2-login-panel {
    min-height: 0;
    align-items: flex-start;
    padding: 15px 20px max(20px, env(safe-area-inset-bottom));
  }
  body.task-login .m2-login-brand { margin-bottom: 15px; }
  body.task-login .m2-login-brand-name { font-size: 14px; }
  body.task-login .m2-login-mark { width: 28px; height: 28px; border-radius: 6px; }
  body.task-login .m2-login-brand-subtitle { margin-top: 8px; }
  body.task-login .m2-login-form tr { margin-bottom: 9px; }
  .m2-login-motion-toggle { right: 2px; bottom: 2px; background: transparent; }
  .m2-login-motion-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgb(31 36 33 / 84%);
    font-size: 11px;
  }
}


@media (min-width: 921px) {
  body.task-login .m2-login-hero { order: -1; }
}

@media (max-width: 920px) {
  body.task-login .m2-login-shell {
    grid-template-rows: auto auto;
    align-content: start;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  body.task-login .m2-login-panel {
    padding-top: max(22px, env(safe-area-inset-top));
    padding-bottom: 0;
  }
  body.task-login .m2-login-hero {
    width: min(calc(100% - 40px), 380px);
    margin: 22px auto 0;
    overflow: visible;
  }
  .m2-login-motion-video { border-radius: inherit; }
  .m2-login-motion-toggle {
    top: calc(100% + 2px);
    right: 0;
    bottom: auto;
  }
  .m2-login-hero:has(.m2-login-motion-toggle:not([hidden])) { margin-bottom: 44px; }
}

body.task-login .maridao-remember-option { margin: 12px 0 8px; font-size: 13px; color: #1f2421; }
body.task-login .maridao-remember-option label { display: inline-flex; align-items: center; min-height: 40px; gap: 8px; cursor: pointer; }
