@media (max-width: 480px){
  .mhrf-screen-register.mhrf-wrap{ padding: 26px 16px 58px; }
  .mhrf-screen-register .mhrf-sub{ font-size: 16px; }
  .mhrf-screen-register .mhrf-check{ font-size: 16px; }
  .mhrf-screen-register .mhrf-btn-xl{ font-size: 18px; }
}

/* ============================================================
   Register screen polish (fields + password actions + meter)
   ============================================================ */
.mhrf-screen-register{
  --mhrf-field-radius: 999px;
  --mhrf-field-border: rgba(255,255,255,.10);
  --mhrf-field-border-strong: rgba(255,255,255,.18);
  --mhrf-field-bg: rgba(0,0,0,.28);
  --mhrf-pw-actions-w: 96px;
}

/* Labels larger & clearer on register only */
.mhrf-screen-register .mhrf-label{
  font-size: 22px;
  letter-spacing: .2px;
  margin: 22px 0 12px;
  color: rgba(244,245,247,.62);
}

/* Pill inputs */
.mhrf-screen-register .mhrf-input{
  border-radius: var(--mhrf-field-radius);
  border: 2px solid var(--mhrf-field-border);
  background: var(--mhrf-field-bg);
  padding: 24px 26px;
  min-height: 86px;
  font-size: 16px;
  line-height: 1.15;
}

.mhrf-screen-register .mhrf-input::placeholder{
  color: rgba(244,245,247,.20);
}

.mhrf-screen-register .mhrf-input:focus{
  border-color: var(--mhrf-field-border-strong);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

/* Password field becomes one unified pill */
.mhrf-screen-register .mhrf-password-field{
  border-radius: var(--mhrf-field-radius);
  border: 2px solid var(--mhrf-field-border);
  background: var(--mhrf-field-bg);
  overflow: hidden;
}

.mhrf-screen-register .mhrf-password-field:focus-within{
  border-color: var(--mhrf-field-border-strong);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

/* Remove inner borders/background on password input (wrapper handles it) */
.mhrf-screen-register .mhrf-password-field .mhrf-input--password{
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  min-height: 86px;
  padding-right: calc(var(--mhrf-pw-actions-w) + 26px);
}

/* Actions: docked on the right, full-height, with internal dividers */
.mhrf-screen-register .mhrf-input-actions{
  right: 0;
  top: 0;
  bottom: 0;
  transform: none;
  gap: 0;
  width: var(--mhrf-pw-actions-w);
  border-left: 1px solid rgba(255,255,255,.10);
}

.mhrf-screen-register .mhrf-input-actions .mhrf-icon-btn{
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  height: 100%;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244,245,247,.35);
  min-width: 0;
}

.mhrf-screen-register .mhrf-input-actions .mhrf-icon-btn:hover{
  background: rgba(255,255,255,.06);
  color: rgba(244,245,247,.65);
}

.mhrf-screen-register .mhrf-input-actions .mhrf-icon-btn:active{
  background: rgba(255,255,255,.10);
}

.mhrf-screen-register .mhrf-action-sep{
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.12);
  display: inline-block;
}

.mhrf-screen-register .mhrf-ic{
  width: 28px;
  height: 28px;
}

/* Meter: only under the input area (stops before the action buttons) */
.mhrf-screen-register .mhrf-pass-meter{
  left: 26px;
  right: calc(var(--mhrf-pw-actions-w) + 26px);
  bottom: 12px;
  height: 6px;
  background: rgba(255,255,255,.06);
}

/* Primary button: keep disabled state readable */
.mhrf-screen-register .mhrf-btn[disabled],
.mhrf-screen-register .mhrf-btn.is-disabled{
  opacity: .55;
  filter: saturate(.85);
  cursor: not-allowed;
}


/* ============================================================
   Register UI alignment with target design (CTA + password cohesion)
   ============================================================ */
.mhrf-screen-register .mhrf-field{ margin-top: 18px; }

.mhrf-screen-register .mhrf-label{
  display:block;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(244,245,247,.78);
}

.mhrf-screen-register .mhrf-input-shell{
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.26);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  padding: 12px 18px;
  min-height: 60px;
  display:flex;
  align-items:center;
}

.mhrf-screen-register .mhrf-input{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--mhrf-text);
  font-size: 16px;
  line-height: 1.25;
}

.mhrf-screen-register .mhrf-input::placeholder{
  color: rgba(244,245,247,.38);
}

/* Focus states */
.mhrf-screen-register .mhrf-input-shell:focus-within{
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.06);
}

/* Autofill (keep dark) */
.mhrf-screen-register input:-webkit-autofill,
.mhrf-screen-register input:-webkit-autofill:hover,
.mhrf-screen-register input:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--mhrf-text) !important;
  caret-color: var(--mhrf-text);
  box-shadow: 0 0 0 1000px rgba(0,0,0,.26) inset !important;
  border-radius: 999px;
  transition: background-color 9999s ease-in-out 0s;
}

/* Password: single cohesive pill with docked actions */
.mhrf-screen-register{
  --mhrf-pw-actions-w: 96px;
}

.mhrf-screen-register .mhrf-input-shell--password{
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}

.mhrf-screen-register .mhrf-input-shell--password .mhrf-input--password{
  min-height: 60px;
  padding: 0 16px 0 18px;
  padding-right: calc(var(--mhrf-pw-actions-w) + 18px);
  border-radius: 0;
}

/* Actions segment */
.mhrf-screen-register .mhrf-input-actions{
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--mhrf-pw-actions-w);
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255,255,255,.03);
  border-left: 1px solid rgba(255,255,255,.10);
}

.mhrf-screen-register .mhrf-actions-divider{
  width: 1px;
  background: rgba(255,255,255,.10);
}

.mhrf-screen-register .mhrf-icon-btn{
  flex: 1 1 50%;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: rgba(244,245,247,.55);
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
}

.mhrf-screen-register .mhrf-icon-btn:hover{
  color: rgba(244,245,247,.86);
  background: rgba(255,255,255,.04);
}

.mhrf-screen-register .mhrf-icon-btn:active{
  background: rgba(255,255,255,.06);
}

.mhrf-screen-register .mhrf-icon-btn:focus-visible{
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(192,19,58,.55);
}

/* eye toggling */
.mhrf-ic-eyeoff{ display:none; }
.mhrf-icon-btn[aria-pressed="true"] .mhrf-ic-eye{ display:none; }
.mhrf-icon-btn[aria-pressed="true"] .mhrf-ic-eyeoff{ display:block; }

/* Strength meter sits under input text area (not under actions) */
.mhrf-screen-register .mhrf-pass-meter{
  position: absolute;
  left: 22px;
  right: calc(var(--mhrf-pw-actions-w) + 22px);
  bottom: 12px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  pointer-events: none;
}

.mhrf-screen-register .mhrf-pass-meter__bar{
  display:block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: hsl(0 90% 50%);
  transition: width .18s ease, background-color .18s ease;
}

/* CTA: full-width, premium typography; disabled stays crisp */
.mhrf-screen-register .mhrf-btn-xl{
  width: 100%;
  margin-top: 22px;
  min-height: 68px;
  padding: 18px 18px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mhrf-screen-register .mhrf-btn-primary{
  border: 0;
  background: linear-gradient(180deg, var(--mhrf-accent), var(--mhrf-accent-2));
  box-shadow: 0 18px 40px rgba(192,19,58,.25);
}

.mhrf-screen-register .mhrf-btn-primary:hover{
  background: linear-gradient(180deg, var(--mhrf-accent-2), var(--mhrf-accent));
}

.mhrf-screen-register .mhrf-btn:disabled,
.mhrf-screen-register .mhrf-btn[disabled]{
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(192,19,58,.28);
  color: rgba(244,245,247,.62);
  filter: saturate(.9);
}

/* Checkbox spacing to match target */
.mhrf-screen-register .mhrf-check{
  margin-top: 18px;
  font-size: 16px;
  color: rgba(244,245,247,.72);
}

/* --- Register compact sizing (locked; target ~44px fields) --- */
.mhrf-screen-register{
  --mhrf-pw-actions-w: 96px;
}

/* One pill per field: shell draws the UI, input stays visually transparent */
.mhrf-screen-register .mhrf-input-shell{
  position: relative;
  min-height: 44px !important;
  padding: 0 14px !important;
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(0,0,0,.26) !important;
  box-shadow: none !important; /* remove inner rail */
}

/* Input must not add size or extra borders */
.mhrf-screen-register .mhrf-input{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 16px !important;
  color: var(--mhrf-text);
}

/* Password wrapper must not create a second pill */
.mhrf-screen-register .mhrf-password-field{
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Password shell: keep actions docked, keep input centered */
.mhrf-screen-register .mhrf-input-shell--password{
  padding: 0 !important;
  align-items: center !important;
  overflow: hidden;
}

/* Password input: reserve space for actions; no extra padding */
.mhrf-screen-register .mhrf-input-shell--password .mhrf-input--password{
  padding-left: 14px !important;
  padding-right: calc(var(--mhrf-pw-actions-w) + 14px) !important;
  border-radius: 999px !important;
}

/* Password actions: fixed width; align icons; subtle divider */
.mhrf-screen-register .mhrf-input-actions{
  width: var(--mhrf-pw-actions-w) !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  background: rgba(255,255,255,.03) !important;
  border-left: 1px solid rgba(255,255,255,.10) !important;
}

.mhrf-screen-register .mhrf-input-actions .mhrf-icon-btn{
  height: 100% !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.mhrf-screen-register .mhrf-ic{
  width: 22px !important;
  height: 22px !important;
}

/* Password strength underline: compact + stops before actions */
.mhrf-screen-register .mhrf-pass-meter{
  left: 14px !important;
  right: calc(var(--mhrf-pw-actions-w) + 14px) !important;
  bottom: 6px !important;
  height: 4px !important;
  background: rgba(255,255,255,.07) !important;
}

.mhrf-screen-register .mhrf-pass-meter__bar{
  background: hsl(0 90% 50%);
  transition: width .18s ease, background-color .18s ease;
}

/* Labels + spacing: tighter, premium */
.mhrf-screen-register .mhrf-field{
  margin-top: 14px !important;
}

.mhrf-screen-register .mhrf-label{
  margin: 0 0 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: rgba(244,245,247,.78) !important;
}

/* Checkbox: smaller and aligned */
.mhrf-screen-register .mhrf-check{
  margin-top: 14px !important;
  font-size: 14px !important;
  gap: 12px !important;
  line-height: 1.35;
}

.mhrf-screen-register .mhrf-check input{
  width: 18px !important;
  height: 18px !important;
  border-radius: 5px !important;
  margin-top: 2px !important;
}

/* CTA: still prominent, not oversized */
.mhrf-screen-register .mhrf-btn-xl{
  min-height: 56px !important;
  padding: 16px 18px !important;
  font-size: 18px !important;
}

/* Footnote: match comp */
.mhrf-screen-register .mhrf-footnote-outside{
  font-size: 16px;
  color: rgba(244,245,247,.60);
}


/* Password actions: match design (full-height right segment) */
.mhrf-screen-register .mhrf-input-actions{
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: var(--mhrf-pw-actions-w) !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  background: rgba(255,255,255,.03) !important;
  border: 0 !important;
  border-left: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 0 999px 999px 0 !important;
}

.mhrf-screen-register .mhrf-input-actions .mhrf-icon-btn{
  flex: 1 1 50% !important;
  width: auto !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(244,245,247,.55) !important;
}

.mhrf-screen-register .mhrf-input-actions .mhrf-icon-btn:hover{
  background: rgba(255,255,255,.06) !important;
  color: rgba(244,245,247,.86) !important;
}

/* Divider between password action buttons */
.mhrf-screen-register .mhrf-divider{
  width: 1px !important;
  height: 58% !important;
  align-self: center !important;
  background: rgba(255,255,255,.14) !important;
  flex: 0 0 1px !important;
}

/* Icon sizing: closer to comp */
.mhrf-screen-register .mhrf-ic{
  width: 22px !important;
  height: 22px !important;
}

/* --- End Register compact sizing --- */

/* === Register submit button text color lock === */
.mhrf-screen-register .mhrf-btn-primary,
.mhrf-screen-register .mhrf-btn-primary:enabled,
.mhrf-screen-register .mhrf-btn-primary:not(:disabled) {
    color: #ffffff !important;
}


/* ============================
   Activate screen (mh-activate)
   ============================ */
.mhrf-screen-activate.mhrf-wrap{
  max-width: 560px;
  padding: 34px 18px 72px;
}
.mhrf-screen-activate .mhrf-card-activate{
  padding: 28px 22px 22px;
  border-radius: 30px;
  background: rgba(14,14,18,.55);
  border-color: rgba(255,255,255,.14);
}
.mhrf-screen-activate .mhrf-kv{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom: 16px;
}
.mhrf-screen-activate .mhrf-kv__label{
  font-size: 16px;
  font-weight: 700;
  color: rgba(244,245,247,.78);
}
.mhrf-screen-activate .mhrf-kv__value{
  font-size: 16px;
  color: rgba(244,245,247,.90);
  word-break: break-word;
}
.mhrf-screen-activate .mhrf-actions-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.mhrf-screen-activate .mhrf-btn{
  border-radius: 999px;
}
.mhrf-screen-activate .mhrf-btn-secondary{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(244,245,247,.92);
  min-height: 44px;
  padding: 10px 16px;
  flex: 1 1 220px;
}
.mhrf-screen-activate .mhrf-btn-ghost{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(244,245,247,.92);
  min-height: 44px;
  padding: 10px 16px;
  flex: 1 1 220px;
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 10px;
}
.mhrf-screen-activate .mhrf-btn__meta{
  font-variant-numeric: tabular-nums;
  opacity: .75;
}
.mhrf-screen-activate .mhrf-btn.is-loading{
  opacity: .85;
  pointer-events: none;
}
.mhrf-screen-activate .mhrf-btn.is-loading .mhrf-btn__label::after{
  content: "…";
}

.mhrf-screen-activate .mhrf-tip{
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(244,245,247,.60);
}

/* Modal */
.mhrf-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 18px;
}
.mhrf-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
}
.mhrf-modal__panel{
  position: relative;
  width: min(560px, 100%);
  border-radius: 22px;
  background: rgba(14,14,18,.80);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  padding: 18px;
}
.mhrf-modal__header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.mhrf-modal__title{
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: rgba(244,245,247,.92);
}
.mhrf-modal__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(244,245,247,.85);
  display:grid;
  place-items:center;
  line-height: 1;
  font-size: 22px;
}
.mhrf-screen-activate #mhrf-email-modal .mhrf-label{
  display:block;
  margin: 14px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(244,245,247,.78);
}
.mhrf-screen-activate #mhrf-email-modal .mhrf-input-shell{
  min-height: 44px;
  padding: 0 14px;
  display:flex;
  align-items:center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.26);
  box-shadow: none;
}
.mhrf-screen-activate #mhrf-email-modal .mhrf-input{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 44px !important;
  line-height: 44px !important;
  color: rgba(244,245,247,.92);
}
.mhrf-modal__actions{
  display:flex;
  gap: 12px;
  margin-top: 16px;
}
.mhrf-modal__actions .mhrf-btn{
  min-height: 44px;
  padding: 10px 16px;
  flex: 1 1 0;
}
.mhrf-screen-activate .mhrf-btn-primary{
  color:#fff !important;
}


/* === Activate screen: button + modal state styling lock === */
.mhrf-screen-activate .mhrf-btn,
.mhrf-screen-activate .mhrf-modal .mhrf-btn{
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(0,0,0,.30) !important;
  color: rgba(244,245,247,.90) !important;
  border-radius: 999px !important;
  transition: background .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
}

.mhrf-screen-activate .mhrf-btn-primary,
.mhrf-screen-activate .mhrf-modal .mhrf-btn-primary{
  border: 0 !important;
  background: linear-gradient(180deg, var(--mhrf-accent), var(--mhrf-accent-2)) !important;
  color: #fff !important;
  box-shadow: 0 18px 40px rgba(192,19,58,.22);
}

.mhrf-screen-activate .mhrf-btn-secondary,
.mhrf-screen-activate .mhrf-modal .mhrf-btn-secondary{
  background: rgba(0,0,0,.22) !important;
  color: rgba(244,245,247,.90) !important;
}

.mhrf-screen-activate .mhrf-btn-ghost,
.mhrf-screen-activate .mhrf-modal .mhrf-btn-ghost{
  background: transparent !important;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(244,245,247,.85) !important;
}

.mhrf-screen-activate .mhrf-btn:hover,
.mhrf-screen-activate .mhrf-modal .mhrf-btn:hover{
  background: rgba(255,255,255,.06) !important;
  color: rgba(244,245,247,.95) !important;
  text-decoration: none !important;
}

.mhrf-screen-activate .mhrf-btn-primary:hover,
.mhrf-screen-activate .mhrf-modal .mhrf-btn-primary:hover{
  background: linear-gradient(180deg, var(--mhrf-accent-2), var(--mhrf-accent)) !important;
  color: #fff !important;
}

.mhrf-screen-activate .mhrf-btn:disabled,
.mhrf-screen-activate .mhrf-btn[disabled],
.mhrf-screen-activate .mhrf-modal .mhrf-btn:disabled,
.mhrf-screen-activate .mhrf-modal .mhrf-btn[disabled]{
  opacity: .55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: saturate(.9);
}

/* Modal action row: two buttons side-by-side */
.mhrf-modal__actions{
  display:flex !important;
  gap: 12px !important;
  margin-top: 14px !important;
}
.mhrf-modal__actions .mhrf-btn{
  width: auto !important;
  flex: 1 1 50% !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  font-weight: 900 !important;
}

/* Loading state (JS uses .is-loading) */
.mhrf-btn.is-loading{
  position: relative;
  pointer-events: none;
  opacity: .75;
}
.mhrf-btn.is-loading::after{
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,.95);
  display:inline-block;
  margin-left: 10px;
  vertical-align: -3px;
  animation: mhrfSpin .8s linear infinite;
}
@keyframes mhrfSpin { to { transform: rotate(360deg); } }



/* === Change Email Modal: Exit button styling (all states) === */
.mhrf-modal .mhrf-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(244,245,247,.75);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
}

.mhrf-modal .mhrf-modal-close:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
  border-color:rgba(255,255,255,.28);
}

.mhrf-modal .mhrf-modal-close:active{
  transform:scale(.96);
  background:rgba(255,255,255,.12);
}

.mhrf-modal .mhrf-modal-close:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(192,19,58,.45);
}

.mhrf-modal .mhrf-modal-close:disabled{
  opacity:.4;
  cursor:not-allowed;
}
