/* WordPress sign-in: an editorial campaign canvas paired with the native account form. */
body.login {
  --mtn-login-page: #f6f8fb;
  --mtn-login-surface: #ffffff;
  --mtn-login-ink: #18283e;
  --mtn-login-muted: #6d7b8d;
  --mtn-login-line: #e2e8f0;
  --mtn-login-input: #ffffff;
  --mtn-login-promo: #edf3fb;
  --mtn-login-promo-ink: #172b46;
  --mtn-login-promo-muted: #62748c;
  --mtn-login-canvas: #ffffff;
  --mtn-login-canvas-well: #f7f9fc;
  --mtn-login-node: #ffffff;
  --mtn-login-accent: #0d6fce;
  --mtn-login-accent-soft: #eaf4ff;
  --mtn-login-green: #1b9a77;
  --mtn-login-green-soft: #e7f7f1;
  --mtn-login-orange: #d98235;
  --mtn-login-orange-soft: #fff2e5;
  --mtn-login-shadow: 0 24px 70px rgb(33 54 82 / 8%);
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: var(--mtn-login-page);
  color: var(--mtn-login-ink);
  color-scheme: light;
  font-family: var(--mtn-font-text, "Nunito Sans", sans-serif);
  transition: background-color 220ms ease, color 220ms ease;
}

html[ta-theme="dark"] body.login {
  --mtn-login-page: #0d1522;
  --mtn-login-surface: #141f30;
  --mtn-login-ink: #edf3fa;
  --mtn-login-muted: #a5b2c3;
  --mtn-login-line: #2a394d;
  --mtn-login-input: #101a29;
  --mtn-login-promo: #101c2e;
  --mtn-login-promo-ink: #f1f5fa;
  --mtn-login-promo-muted: #aab8ca;
  --mtn-login-canvas: #162337;
  --mtn-login-canvas-well: #111d2f;
  --mtn-login-node: #1b2b41;
  --mtn-login-accent: #6bb2ff;
  --mtn-login-accent-soft: #1b3552;
  --mtn-login-green: #64d1ad;
  --mtn-login-green-soft: #173c39;
  --mtn-login-orange: #ffb56f;
  --mtn-login-orange-soft: #493321;
  --mtn-login-shadow: 0 24px 70px rgb(0 0 0 / 22%);
  color-scheme: dark;
}

body.login #login {
  box-sizing: border-box;
  display: flex;
  width: 49%;
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 51%;
  padding: 100px clamp(36px, 7vw, 120px) 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.login #login > *:not(.mtn-login-promo):not(.mtn-login-theme-switch) {
  width: min(100%, 438px);
  box-sizing: border-box;
}

body.login #login h1 {
  width: min(100%, 438px);
  margin: 0 0 30px;
  padding: 0;
  line-height: 1;
}

body.login #login h1 a {
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 46px;
  margin: 0;
  padding: 7px 0 7px 56px;
  align-items: center;
  background-image: url("../img/logo/login-logo.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 44px 44px;
  color: var(--mtn-login-ink);
  font-family: var(--mtn-font-text, "Nunito Sans", sans-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: left;
  text-indent: 0;
  text-decoration: none;
  overflow: visible;
  box-shadow: none;
}

body.login #login h1 a:hover,
body.login #login h1 a:focus {
  color: var(--mtn-login-ink);
  outline: 2px solid var(--mtn-login-accent);
  outline-offset: 5px;
}

.mtn-login-intro {
  margin: 0 0 18px;
}

.mtn-login-intro > p {
  margin: 0 0 6px;
  color: var(--mtn-login-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mtn-login-intro h2 {
  margin: 0 0 4px;
  color: var(--mtn-login-ink);
  font-family: var(--mtn-font-rank, "Playfair Display", Georgia, serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.mtn-login-intro > span {
  display: block;
  max-width: 410px;
  color: var(--mtn-login-muted);
  font-size: 13px;
  line-height: 1.55;
}

body.login #login form {
  margin: 0;
  padding: 27px 30px 22px;
  border: 1px solid var(--mtn-login-line);
  border-radius: 16px;
  background: var(--mtn-login-surface);
  box-shadow: var(--mtn-login-shadow);
  color: var(--mtn-login-ink);
}

body.login #login form label {
  color: var(--mtn-login-ink);
  font-size: 13px;
  font-weight: 700;
}

body.login #login form input[type="text"],
body.login #login form input[type="password"],
body.login #login form input[type="email"] {
  box-sizing: border-box;
  min-height: 48px;
  margin: 8px 0 18px;
  padding: 10px 13px;
  border: 1px solid var(--mtn-login-line);
  border-radius: 8px;
  background: var(--mtn-login-input);
  color: var(--mtn-login-ink);
  font-family: inherit;
  font-size: 15px;
  box-shadow: none;
}

body.login #login form input[type="text"]:focus,
body.login #login form input[type="password"]:focus,
body.login #login form input[type="email"]:focus {
  border-color: var(--mtn-login-accent);
  outline: 3px solid var(--mtn-login-accent-soft);
  box-shadow: none;
}

body.login #login form .user-pass-wrap {
  margin-bottom: 0;
}

body.login #login form .wp-pwd {
  display: flex;
  align-items: center;
}

body.login #login form .wp-pwd input[type="password"],
body.login #login form .wp-pwd input[type="text"] {
  padding-right: 48px;
}

body.login #login form .button.wp-hide-pw {
  height: 40px;
  margin: 0 3px 0 -46px;
  color: var(--mtn-login-muted);
}

body.login #login form .forgetmenot {
  float: none;
  margin: 0 0 18px;
}

body.login #login form .forgetmenot label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--mtn-login-muted);
  font-weight: 600;
}

body.login #login form .forgetmenot input {
  margin: 0;
}

body.login #login form .submit {
  float: none;
  margin: 0;
  padding: 0;
}

body.login #login form .button-primary {
  float: none;
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #147ce2;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-shadow: none;
  box-shadow: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

html[ta-theme="dark"] body.login #login form .button-primary {
  background: #277ed2;
}

body.login #login form .button-primary:hover,
body.login #login form .button-primary:focus-visible {
  background: #0968c5;
  transform: translateY(-1px);
}

body.login #login #nav,
body.login #login #backtoblog {
  margin: 16px 0 0;
  padding: 0;
  color: var(--mtn-login-muted);
  font-size: 13px;
  text-align: left;
}

body.login #login #backtoblog {
  margin-top: 8px;
}

body.login #login a {
  color: var(--mtn-login-accent);
}

body.login #login a:hover,
body.login #login a:focus-visible {
  color: var(--mtn-login-ink);
}

body.login #login .message,
body.login #login .notice,
body.login #login #login_error {
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid var(--mtn-login-line);
  border-left: 4px solid var(--mtn-login-accent);
  border-radius: 8px;
  background: var(--mtn-login-surface);
  color: var(--mtn-login-ink);
  box-shadow: none;
}

body.login #login .mtn-login-promo {
  box-sizing: border-box;
  position: fixed;
  z-index: 0;
  inset: 0 auto 0 0;
  display: flex;
  width: 51vw;
  height: 100vh;
  min-height: 640px;
  padding: 34px clamp(32px, 5vw, 78px) 26px;
  flex-direction: column;
  overflow-y: auto;
  background: var(--mtn-login-promo);
  color: var(--mtn-login-promo-ink);
  scrollbar-width: thin;
}

body.login #login .mtn-login-promo::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(rgb(33 88 150 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(33 88 150 / 4%) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(135deg, #000 0%, transparent 78%);
}

html[ta-theme="dark"] body.login #login .mtn-login-promo::before {
  background-image: linear-gradient(rgb(162 198 240 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(162 198 240 / 5%) 1px, transparent 1px);
}

.mtn-login-promo__top {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.mtn-login-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--mtn-login-promo-ink) !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.mtn-login-brand img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.mtn-login-promo__edition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mtn-login-promo-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mtn-login-promo__edition > span,
.mtn-login-canvas__status i,
.mtn-login-canvas__footer i {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #39ae88;
  box-shadow: 0 0 0 4px rgb(57 174 136 / 13%);
}

.mtn-login-promo__content {
  width: 100%;
  max-width: 700px;
  margin: auto;
  padding: 28px 0 18px;
  position: relative;
  z-index: 1;
  animation: mtn-login-rise 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mtn-login-eyebrow,
.mtn-login-canvas__label {
  display: block;
  margin: 0;
  color: var(--mtn-login-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mtn-login-promo__content h2 {
  max-width: 620px;
  margin: 12px 0 11px;
  color: var(--mtn-login-promo-ink);
  font-family: var(--mtn-font-rank, "Playfair Display", Georgia, serif);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.07;
}

.mtn-login-promo__description {
  max-width: 520px;
  margin: 0;
  color: var(--mtn-login-promo-muted);
  font-size: 14px;
  line-height: 1.65;
}

.mtn-login-canvas {
  margin-top: 22px;
  padding: 17px 18px 12px;
  border: 1px solid var(--mtn-login-line);
  border-radius: 15px;
  background: var(--mtn-login-canvas);
  box-shadow: 0 18px 48px rgb(26 52 87 / 9%);
  animation: mtn-login-rise 700ms 100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html[ta-theme="dark"] .mtn-login-canvas {
  box-shadow: 0 18px 48px rgb(0 0 0 / 18%);
}

.mtn-login-canvas__header,
.mtn-login-canvas__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mtn-login-canvas__header {
  padding: 0 1px 14px;
  border-bottom: 1px solid var(--mtn-login-line);
}

.mtn-login-canvas__header > div {
  display: grid;
  gap: 3px;
}

.mtn-login-canvas__header strong {
  color: var(--mtn-login-ink);
  font-size: 15px;
  font-weight: 800;
}

.mtn-login-canvas__status {
  display: inline-flex;
  padding: 7px 9px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--mtn-login-line);
  border-radius: 999px;
  color: var(--mtn-login-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mtn-login-canvas__status i {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
}

.mtn-login-flow {
  padding: 13px 0 8px;
}

.mtn-login-node {
  display: flex;
  min-width: 0;
  min-height: 61px;
  padding: 10px 12px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--mtn-login-line);
  border-radius: 10px;
  background: var(--mtn-login-node);
}

.mtn-login-node__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 9px;
}

.mtn-login-node__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.mtn-login-node__icon--segment {
  background: var(--mtn-login-accent-soft);
  color: var(--mtn-login-accent);
}

.mtn-login-node__icon--condition {
  background: #f0edff;
  color: #7868d8;
}

.mtn-login-node__icon--email {
  background: var(--mtn-login-green-soft);
  color: var(--mtn-login-green);
}

.mtn-login-node__icon--followup {
  background: var(--mtn-login-orange-soft);
  color: var(--mtn-login-orange);
}

html[ta-theme="dark"] .mtn-login-node__icon--condition {
  background: #302c52;
  color: #b4a8ff;
}

.mtn-login-node__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: var(--mtn-login-muted);
  font-size: 10px;
  line-height: 1.35;
}

.mtn-login-node__copy small {
  color: var(--mtn-login-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mtn-login-node__copy strong {
  overflow: hidden;
  color: var(--mtn-login-ink);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtn-login-node__copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtn-login-node__check,
.mtn-login-node__menu {
  margin-left: auto;
  color: var(--mtn-login-green);
  font-size: 14px;
  font-weight: 900;
}

.mtn-login-node__menu {
  color: var(--mtn-login-muted);
  font-size: 13px;
  letter-spacing: 1px;
}

.mtn-login-flow__connector {
  display: flex;
  height: 21px;
  align-items: center;
  justify-content: center;
}

.mtn-login-flow__connector span {
  width: 1px;
  height: 100%;
  background: linear-gradient(var(--mtn-login-line), var(--mtn-login-accent));
  position: relative;
}

.mtn-login-flow__connector span::after {
  position: absolute;
  right: -3px;
  bottom: -1px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--mtn-login-accent);
  border-bottom: 1px solid var(--mtn-login-accent);
  content: "";
  transform: rotate(45deg);
}

.mtn-login-branches {
  display: grid;
  margin-top: 20px;
  padding-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  position: relative;
}

.mtn-login-branches::before {
  position: absolute;
  top: 0;
  right: 25%;
  left: 25%;
  height: 1px;
  background: var(--mtn-login-line);
  content: "";
}

.mtn-login-branches::after {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 1px;
  height: 20px;
  background: var(--mtn-login-line);
  content: "";
}

.mtn-login-branch {
  min-width: 0;
  position: relative;
}

.mtn-login-branch::before {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 1px;
  height: 14px;
  background: var(--mtn-login-line);
  content: "";
}

.mtn-login-branch__label {
  display: block;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--mtn-login-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mtn-login-branch .mtn-login-node {
  min-height: 70px;
  padding: 9px;
  gap: 8px;
}

.mtn-login-branch .mtn-login-node__icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.mtn-login-branch .mtn-login-node__copy strong {
  font-size: 11px;
}

.mtn-login-canvas__footer {
  min-height: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--mtn-login-line);
  color: var(--mtn-login-muted);
  font-size: 10px;
  font-weight: 700;
}

.mtn-login-canvas__footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mtn-login-canvas__footer i {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
}

.mtn-login-promo__footnote {
  display: flex;
  margin-top: 16px;
  justify-content: space-between;
  gap: 18px;
  color: var(--mtn-login-promo-muted);
  font-size: 10px;
  font-weight: 600;
}

.mtn-login-theme-switch {
  box-sizing: border-box;
  position: fixed;
  z-index: 5;
  top: 25px;
  right: 30px;
  display: inline-flex;
  min-height: 40px;
  padding: 0 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--mtn-login-line);
  border-radius: 999px;
  background: var(--mtn-login-surface);
  color: var(--mtn-login-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 18px rgb(20 42 68 / 5%);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mtn-login-theme-switch:hover {
  border-color: var(--mtn-login-accent);
}

.mtn-login-theme-switch:focus-visible {
  outline: 3px solid var(--mtn-login-accent-soft);
  outline-offset: 3px;
}

.mtn-login-theme-switch svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.mtn-login-theme-switch__moon {
  display: none;
}

html[ta-theme="dark"] .mtn-login-theme-switch__sun {
  display: none;
}

html[ta-theme="dark"] .mtn-login-theme-switch__moon {
  display: block;
}

.mtn-login-theme-switch__moon path {
  fill: currentColor;
  stroke: none;
}

html[ta-theme="dark"] .mtn-login-promo__content h2 {
  color: #f4f6fb;
}

@keyframes mtn-login-rise {
  from { opacity: 0; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) and (min-width: 901px) {
  body.login #login {
    width: 47%;
    margin-left: 53%;
    padding-right: 5vw;
    padding-left: 5vw;
  }

  body.login #login .mtn-login-promo {
    width: 53vw;
    padding-right: 4vw;
    padding-left: 4vw;
  }

  .mtn-login-canvas {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  body.login #login .mtn-login-promo {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .mtn-login-promo__content {
    padding-top: 16px;
    padding-bottom: 10px;
  }

  .mtn-login-promo__content h2 {
    margin-top: 8px;
    font-size: clamp(32px, 3vw, 40px);
  }

  .mtn-login-canvas {
    margin-top: 15px;
  }
}

@media (max-width: 900px) {
  body.login {
    min-height: 100vh;
  }

  body.login #login {
    display: flex;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 24px 46px;
  }

  body.login #login > *:not(.mtn-login-promo):not(.mtn-login-theme-switch) {
    width: min(100%, 480px);
  }

  body.login #login h1 {
    display: none;
  }

  body.login #login .mtn-login-intro {
    margin-top: 26px;
  }

  body.login #login .mtn-login-promo {
    box-sizing: border-box;
    position: relative;
    inset: auto;
    order: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 27px clamp(24px, 7vw, 64px) 25px;
    overflow: visible;
  }

  .mtn-login-promo__content {
    padding: 30px 0 10px;
  }

  .mtn-login-promo__content h2 {
    max-width: 560px;
    font-size: clamp(34px, 6vw, 46px);
  }

  .mtn-login-canvas {
    margin-top: 22px;
  }

  .mtn-login-theme-switch {
    top: 23px;
    right: 24px;
  }
}

@media (max-width: 560px) {
  body.login #login {
    padding: 0 17px 32px;
  }

  body.login #login .mtn-login-promo {
    margin-right: -17px;
    margin-left: -17px;
    padding: 23px 19px 20px;
  }

  .mtn-login-promo__top {
    align-items: flex-start;
  }

  .mtn-login-promo__edition {
    max-width: 116px;
    margin-top: 7px;
    font-size: 9px;
  }

  .mtn-login-promo__content {
    padding-top: 26px;
  }

  .mtn-login-promo__content h2 {
    max-width: 380px;
    font-size: 35px;
  }

  .mtn-login-promo__description {
    font-size: 13px;
  }

  .mtn-login-canvas {
    margin-top: 19px;
    padding: 14px 12px 10px;
  }

  .mtn-login-branches {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .mtn-login-branches::before {
    right: 50%;
    left: 50%;
    height: 100%;
    border-top: 0;
    background: linear-gradient(var(--mtn-login-line), var(--mtn-login-line));
  }

  .mtn-login-branch::before {
    left: 50%;
  }

  .mtn-login-branch .mtn-login-node {
    min-height: 62px;
    padding: 9px 11px;
  }

  .mtn-login-promo__footnote {
    flex-direction: column;
    gap: 5px;
  }

  .mtn-login-theme-switch {
    top: auto;
    right: 15px;
    bottom: 16px;
    min-height: 38px;
    padding: 0 11px;
    background: var(--mtn-login-page);
  }

  body.login #login form {
    padding: 23px 20px 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.login,
  .mtn-login-theme-switch,
  body.login #login form .button-primary {
    transition: none;
  }

  .mtn-login-promo__content,
  .mtn-login-canvas {
    animation: none;
  }
}

/* Registration stays simple and centered inside the native WordPress screen. */
body.login.login-action-register #login {
  box-sizing: border-box;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 24px;
  align-items: stretch;
}

body.login.login-action-register #login h1 {
  display: none;
}

body.login.login-action-register #login .mtn-login-promo,
body.login.login-action-register #login .mtn-login-theme-switch {
  display: none;
}

body.login.login-action-register #login .mtn-login-intro {
  margin: 0 0 22px;
}

@media (max-width: 560px) {
  body.login.login-action-register #login {
    padding: 48px 17px 32px;
  }
}
