.mh-auth-page {
  --auth-bg: #07080a;
  --auth-panel: #101217;
  --auth-border: #292d35;
  --auth-text: #f6f7f9;
  --auth-muted: #939aa6;
  --auth-red: #d71920;
  --auth-red-bright: #ef2b32;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: Montserrat, "Segoe UI", sans-serif;
}

.mh-auth-page #header,
.mh-auth-page #scroll-top,
.mh-auth-page #preloader { display: none !important; }

.mh-auth {
  background: var(--auth-bg);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr);
  min-height: 100vh;
}

.mh-auth__story {
  background:
    radial-gradient(circle at 18% 25%, rgba(215, 25, 32, .25), transparent 30%),
    linear-gradient(145deg, rgba(215, 25, 32, .08), transparent 42%),
    #090a0d;
  border-right: 1px solid var(--auth-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4.5rem);
  position: relative;
}

.mh-auth__story::before {
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom right, #000, transparent 76%);
  pointer-events: none;
  position: absolute;
}

.mh-auth__story::after {
  background: var(--auth-red);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.mh-auth__brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: .95rem;
  font-weight: 800;
  gap: .8rem;
  letter-spacing: .08em;
  position: relative;
  text-transform: uppercase;
  width: fit-content;
  z-index: 1;
}

.mh-auth__brand:hover { color: #fff; }
.mh-auth__brand img { border-radius: 10px; height: 52px; object-fit: contain; width: 52px; }
.mh-auth__story-content { max-width: 720px; position: relative; z-index: 1; }
.mh-auth__eyebrow { color: var(--auth-red-bright); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.mh-auth__story h1 { color: #fff; font-size: clamp(2.6rem, 5.3vw, 5.8rem); font-weight: 800; letter-spacing: -.065em; line-height: .98; margin: 1rem 0 1.5rem; }
.mh-auth__story h1 em { color: var(--auth-red-bright); font-style: normal; }
.mh-auth__story-content > p { color: #a7adb7; font-size: clamp(.95rem, 1.4vw, 1.15rem); line-height: 1.75; max-width: 590px; }
.mh-auth__features { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.mh-auth__features span { background: rgba(255,255,255,.035); border: 1px solid var(--auth-border); border-radius: 999px; color: #cbd0d8; font-size: .72rem; font-weight: 650; padding: .55rem .8rem; }
.mh-auth__features i { color: var(--auth-red-bright); margin-right: .35rem; }
.mh-auth__caption { align-items: center; color: #696f7a; display: flex; font-size: .68rem; font-weight: 700; gap: .6rem; letter-spacing: .1em; margin: 0; position: relative; text-transform: uppercase; z-index: 1; }
.mh-auth__caption span { background: var(--auth-red); display: inline-block; height: 2px; width: 34px; }

.mh-auth__form-panel { align-items: center; background: var(--auth-panel); display: flex; justify-content: center; padding: clamp(1.5rem, 5vw, 5rem); }
.mh-auth__form-wrap { max-width: 460px; width: 100%; }
.mh-auth__form-heading { margin-bottom: 2.5rem; }
.mh-auth__form-heading h2 { color: #fff; font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; margin: .6rem 0 .7rem; }
.mh-auth__form-heading p { color: var(--auth-muted); margin: 0; }

.mh-field { margin-bottom: 1.35rem; }
.mh-field > label { color: #d8dce2; display: block; font-size: .78rem; font-weight: 700; margin-bottom: .55rem; }
.mh-field__control { position: relative; }
.mh-field__control > i { color: #6f7783; font-size: 1rem; left: 1rem; pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.mh-field__control .form-control {
  background: #090b0e !important;
  border: 1px solid #30353e !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: .9rem;
  height: 54px;
  padding: 0 3rem 0 2.8rem !important;
}
.mh-field__control .form-control::placeholder { color: #5d6470; }
.mh-field__control .form-control:focus { border-color: var(--auth-red-bright) !important; box-shadow: 0 0 0 4px rgba(239,43,50,.12) !important; }
.mh-field__control .form-control.is-invalid { border-color: #ff5d64 !important; }
.mh-field__error { color: #ff777d; display: block; font-size: .72rem; margin-top: .45rem; }
.mh-password-toggle { align-items: center; background: transparent; border: 0; color: #89909b; display: flex; height: 44px; justify-content: center; padding: 0; position: absolute; right: .35rem; top: 5px; width: 44px; z-index: 3; }
.mh-password-toggle:hover { color: #fff; }

.mh-auth__options { align-items: center; display: flex; font-size: .76rem; justify-content: space-between; margin: .2rem 0 1.5rem; }
.mh-auth__options a { color: #d9dde3; font-weight: 650; }
.mh-auth__options a:hover { color: var(--auth-red-bright); }
.mh-check { align-items: center; color: var(--auth-muted); cursor: pointer; display: flex; gap: .55rem; margin: 0; }
.mh-check input { accent-color: var(--auth-red); height: 16px; width: 16px; }

.mh-auth__submit {
  align-items: center;
  background: var(--auth-red);
  border: 1px solid var(--auth-red);
  border-radius: 11px;
  color: #fff;
  display: flex;
  font-size: .86rem;
  font-weight: 800;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 1.2rem 0 1.35rem;
  width: 100%;
}
.mh-auth__submit i { align-items: center; background: rgba(0,0,0,.16); border-radius: 8px; display: flex; height: 34px; justify-content: center; width: 34px; }
.mh-auth__submit:hover { background: var(--auth-red-bright); border-color: var(--auth-red-bright); box-shadow: 0 12px 28px rgba(215,25,32,.25); }
.mh-auth__submit:focus-visible, .mh-password-toggle:focus-visible, .mh-auth a:focus-visible { outline: 3px solid rgba(239,43,50,.42); outline-offset: 3px; }
.mh-auth__support { color: #666e7a; font-size: .68rem; margin: 1.5rem 0 0; text-align: center; }
.mh-auth__support i { color: var(--auth-red-bright); margin-right: .35rem; }

@media (max-width: 991px) {
  .mh-auth { grid-template-columns: 1fr; }
  .mh-auth__story { min-height: 340px; padding: 2rem; }
  .mh-auth__story h1 { font-size: clamp(2.4rem, 9vw, 4rem); }
  .mh-auth__caption { display: none; }
  .mh-auth__form-panel { min-height: 620px; padding: 3rem 1.5rem; }
}

@media (max-width: 575px) {
  .mh-auth__story { min-height: 280px; }
  .mh-auth__story h1 { font-size: 2.35rem; margin-bottom: .9rem; }
  .mh-auth__story-content > p { font-size: .85rem; line-height: 1.55; }
  .mh-auth__features { display: none; }
  .mh-auth__form-panel { min-height: calc(100vh - 280px); padding: 2.5rem 1.15rem; }
  .mh-auth__options { align-items: flex-start; flex-direction: column; gap: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mh-auth *, .mh-auth *::before, .mh-auth *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
