/* ==========================================================================
   Mega Followers UK: auth + status screens (mf-auth.css)
   Pages: customer_signin, customer_signup, customer_forgot_password,
   customer_reset_password, free_likes_guest_claim, unsubscribe,
   wallet_credit_verify(_result).
   Loaded with add_css('mf-auth.css') before the header (mf-ds.css still loads
   last), or linked directly by the two standalone wallet-verify pages.
   Uses mf-ds tokens only. Legacy auth__* class names stay on the markup
   because the inline page scripts toggle them (auth__hint--valid etc.).
   ========================================================================== */

/* 1. Page shell ------------------------------------------------------------ */
.mf-auth__shell {
  position: relative;
  isolation: isolate;
  padding: 28px 0 56px;
  background:
    radial-gradient(70% 70% at 0% 0%, #FFF1F6 0%, rgba(255, 241, 246, 0) 60%),
    radial-gradient(60% 70% at 100% 0%, #FFF4EC 0%, rgba(255, 244, 236, 0) 65%),
    var(--surface);
  overflow: hidden;
  overflow: clip;
}
.mf-auth__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(rgba(41, 47, 59, .09) 1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}
@media (min-width: 768px) { .mf-auth__shell { padding: 56px 0 88px; } }
@media (min-width: 992px) { .mf-auth__shell { padding: 64px 0 104px; } }

/* 2. Split panel (sign in / sign up) --------------------------------------- */
.mf-auth__panel {
  display: grid;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .mf-auth__panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 0;
    border-radius: var(--r-card-xl);
    box-shadow: var(--float-shadow);
    background: #fff;
    min-height: 640px;
  }
}

/* Form side (first on mobile) */
.mf-auth__form-side {
  order: 1;
  position: relative;
  padding: 28px 20px 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--float-shadow);
}
@media (min-width: 576px) { .mf-auth__form-side { padding: 36px 36px 32px; } }
@media (min-width: 992px) {
  .mf-auth__form-side {
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 64px;
    border-radius: 0 var(--r-card-xl) var(--r-card-xl) 0;
    box-shadow: none;
  }
}
@media (min-width: 1200px) { .mf-auth__form-side { padding: 56px 88px; } }
.mf-auth__form-inner { width: 100%; max-width: 440px; margin: 0 auto; }

/* Brand side: dark, gradient top edge, lightning art */
.mf-auth__brand {
  order: 2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: 28px 20px;
  border-radius: 20px;
  background: var(--dark-checkout);
  color: #C9CBD6;
}
.mf-auth__brand::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--brand-grad);
}
.mf-auth__brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px; height: 320px;
  right: -140px; top: -140px;
  border-radius: 50%;
  background: var(--brand-grad);
  opacity: .2;
  filter: blur(70px);
  pointer-events: none;
}
@media (min-width: 576px) { .mf-auth__brand { padding: 36px; } }
@media (min-width: 992px) {
  .mf-auth__brand {
    order: 1;
    display: flex;
    flex-direction: column;
    padding: 48px 44px 44px;
    border-radius: var(--r-card-xl) 0 0 var(--r-card-xl);
  }
  .mf-auth__brand::after { right: auto; left: 30%; top: 22%; }
}
.mf-auth__brand-inner { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; }

.mf-auth__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 12px 7px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: #fff;
  font: 700 .75rem/1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mf-auth__badge .mf-bolt { width: 14px; height: 14px; }

.mf-auth__brand-title {
  margin: 6px 0 0;
  color: #fff;
  font: 800 clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem)/1.1 var(--font-display);
  letter-spacing: -.03em;
}
.mf-auth__brand-lead { margin: 0; max-width: 34ch; color: #B8BACB; font-size: 1rem; line-height: 1.6; }

/* Benefit list with gradient bolts */
.mf-auth__points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.mf-auth__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  color: #E4E5EC;
  font: 600 .9375rem/1.4 var(--font-body);
}
.mf-auth__point-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(248, 58, 90, .14);
  color: var(--cta-on-dark);
  font-size: .875rem;
}
@media (min-width: 992px) { .mf-auth__brand-inner { justify-content: center; } }
.mf-auth__help { display: block; margin-top: 7px; color: var(--muted); font-size: .8125rem; line-height: 1.4; }

/* Lightning illustration (desktop only) */
.mf-auth__art { display: none; }
@media (min-width: 992px) {
  .mf-auth__art {
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    height: 210px;
    margin: 18px auto 22px;
  }
}
.mf-auth__tile {
  position: absolute;
  border-radius: 30%;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.mf-auth__tile--a { width: 150px; height: 150px; left: 50%; top: 50%; margin: -75px 0 0 -75px; transform: rotate(-9deg); }
.mf-auth__tile--b { width: 118px; height: 118px; left: 50%; top: 50%; margin: -59px 0 0 -59px; transform: rotate(12deg); background: rgba(255, 255, 255, .06); }
.mf-auth__orb {
  position: absolute;
  left: 50%; top: 50%;
  width: 92px; height: 92px;
  margin: -46px 0 0 -46px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: #fff;
  transform: rotate(-4deg);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .06), 0 14px 30px rgba(250, 21, 147, .25);
}
.mf-auth__orb svg { width: 54px; height: 54px; transform: rotate(4deg); }
.mf-auth__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: #fff;
  color: var(--heading);
  font: 700 .8125rem/1 var(--font-body);
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
.mf-auth__chip i {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--cta-tint);
  color: var(--cta-edge);
  font-size: .75rem;
}
.mf-auth__chip--a { left: 0; top: 14px; transform: rotate(-3deg); }
.mf-auth__chip--b { right: 0; bottom: 18px; transform: rotate(3deg); }
.mf-auth__chip--b i { background: var(--home-mint, #E2F7F1); color: var(--success); }
.mf-auth__doodle { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 255, 255, .22); pointer-events: none; }

/* 3. Form head ------------------------------------------------------------- */
.mf-auth__head { margin-bottom: 24px; }
.mf-auth__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font: 700 .75rem/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mf-auth__eyebrow .mf-bolt { width: 14px; height: 14px; }
.mf-auth__title {
  margin: 0 0 8px;
  color: var(--heading);
  font: 800 clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem)/1.12 var(--font-display);
  letter-spacing: -.03em;
}
.mf-auth__title::after {
  content: "";
  display: block;
  width: 40px; height: 4px;
  margin-top: 12px;
  border-radius: 4px;
  background: var(--brand-grad);
}
.mf-auth__sub { margin: 0; color: var(--body); font-size: 1rem; line-height: 1.55; }

/* 4. Fields ---------------------------------------------------------------- */
.mf-auth .form__field { margin-bottom: 18px !important; }
.mf-auth .form-label,
.mf-auth .mf-auth__label {
  display: block;
  margin-bottom: 7px;
  color: var(--heading) !important;
  font: 600 .875rem/1.4 var(--font-body) !important;
}
.mf-auth .auth__field { position: relative; }
.mf-auth .auth__field-icon {
  position: absolute;
  top: 50%; left: 15px;
  z-index: 2;
  transform: translateY(-50%);
  color: #8A909C;
  font-size: .9375rem;
  line-height: 1;
  pointer-events: none;
  transition: color .15s ease;
}
.mf-auth .auth__field .form-control,
.mf-auth .mf-auth-card .form-control {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 14px 13px 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--heading);
  font: 400 1rem/1.4 var(--font-body);
  box-shadow: 0 1px 2px rgba(16, 17, 20, .04);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.mf-auth .mf-auth-card .form-control:not(.has-icon) { padding-left: 14px; }
.mf-auth .auth__field--password .form-control { padding-right: 52px; }
.mf-auth .form-control::placeholder { color: #8A909C; opacity: 1; }
.mf-auth .form-control:hover { border-color: #BCC2CE; }
.mf-auth .form-control:focus {
  outline: none;
  border-color: var(--heading);
  box-shadow: 0 0 0 3px rgba(41, 47, 59, .12);
  background: #fff;
}
.mf-auth .auth__field:focus-within .auth__field-icon { color: var(--heading); }
.mf-auth .form-control.is-invalid {
  border-color: var(--error);
  background-image: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
  padding-right: 14px;
}
.mf-auth .auth__field--password .form-control.is-invalid { padding-right: 52px; }
.mf-auth .auth__field:has(.is-invalid) .auth__field-icon { color: var(--error); }
.mf-auth .form-control.is-valid {
  border-color: var(--success);
  background-image: none;
  padding-right: 14px;
}
.mf-auth .auth__field--password .form-control.is-valid { padding-right: 52px; }
.mf-auth .form-control.is-valid:focus { box-shadow: 0 0 0 3px rgba(30, 158, 106, .14); }

/* Show / hide password */
.mf-auth .auth__password-toggle {
  position: absolute;
  top: 50%; right: 4px;
  z-index: 2;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.mf-auth .auth__password-toggle:hover { color: var(--heading); background: var(--surface-2); }

/* Inline hints (email check, password strength, match) */
.mf-auth .auth__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
  font: 500 .8125rem/1.4 var(--font-body);
}
.mf-auth .auth__hint:empty { display: none; }
.mf-auth .auth__hint--invalid { color: #B42318; }
.mf-auth .auth__hint--valid { color: #147A52; }
.mf-auth .auth__hint--fair { color: #A33800; }
.mf-auth .auth__hint--invalid::before,
.mf-auth .auth__hint--valid::before {
  content: "";
  flex: 0 0 16px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: currentColor;
  -webkit-mask: var(--mfa-icon) center / contain no-repeat;
  mask: var(--mfa-icon) center / contain no-repeat;
}
.mf-auth .auth__hint--invalid::before {
  --mfa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 10.6a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2zM8 3.4c-.6 0-1 .5-1 1.1l.3 4.6c0 .4.3.7.7.7s.7-.3.7-.7l.3-4.6c0-.6-.4-1.1-1-1.1z'/%3E%3C/svg%3E");
}
.mf-auth .auth__hint--valid::before {
  --mfa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm3.5 5.2a.8.8 0 0 0-1.1.1L7.1 9.2 5.6 7.8a.8.8 0 1 0-1.1 1.1l2.1 2a.8.8 0 0 0 1.1 0l3.9-4.6a.8.8 0 0 0-.1-1.1z'/%3E%3C/svg%3E");
}

/* Password strength meter */
.mf-auth__meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.mf-auth__meter span { height: 4px; border-radius: 4px; background: var(--surface-2); transition: background-color .2s ease; }
.mf-auth__meter[data-level="0"] { display: none; }
.mf-auth__meter[data-level="1"] span:nth-child(-n+1) { background: var(--error); }
.mf-auth__meter[data-level="2"] span:nth-child(-n+2) { background: #F59E0B; }
.mf-auth__meter[data-level="3"] span:nth-child(-n+3) { background: #F59E0B; }
.mf-auth__meter[data-level="4"] span { background: var(--success); }

/* Form-level alert (mirrors the server message next to the form) */
.mf-auth__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FDECEC;
  box-shadow: inset 0 0 0 1px #F5C2C2;
  color: #9B1C1C;
  font: 500 .875rem/1.45 var(--font-body);
}
.mf-auth__alert[hidden] { display: none; }
.mf-auth__alert i { margin-top: 2px; }

/* Forgot link row */
.mf-auth .auth__forgot { display: flex; justify-content: flex-end; margin: -4px 0 20px; }
.mf-auth .auth__forgot a,
.mf-auth .auth__footer-link a,
.mf-auth .mf-auth__link {
  color: var(--cta-edge);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}
.mf-auth .auth__forgot a:hover,
.mf-auth .auth__footer-link a:hover,
.mf-auth .mf-auth__link:hover { color: var(--cta-press); text-decoration: underline; text-underline-offset: 3px; }
.mf-auth .auth__forgot a { font-size: .875rem; }

/* Consent checkbox (sign up) */
.mf-auth .auth__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 22px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.mf-auth .auth__consent .form-check-input {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid #9AA1AE;
  border-radius: 6px;
  cursor: pointer;
}
.mf-auth .auth__consent .form-check-input:checked { background-color: var(--cta); border-color: var(--cta); }
.mf-auth .auth__consent .form-check-input:focus { box-shadow: 0 0 0 3px var(--cta-soft-2); border-color: var(--cta); }
.mf-auth .auth__consent .form-check-label { color: var(--body); font-size: .9375rem; line-height: 1.4; cursor: pointer; }

/* Submit: mf-btn--primary does the visuals; keep the spinner inline */
.mf-auth .auth__submit { width: 100%; }
.mf-auth .auth__submit .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }

/* Switch-form footer */
.mf-auth .auth__footer-link {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: .9375rem;
}
.mf-auth .auth__footer-link .small { font-size: inherit; }

/* 5. Centred card (forgot / reset / status pages) -------------------------- */
.mf-auth-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 20px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--float-shadow);
  overflow: hidden;
  overflow: clip;
}
.mf-auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 120px; height: 3px;
  transform: translateX(-50%);
  border-radius: 0 0 3px 3px;
  background: var(--brand-grad);
}
@media (min-width: 576px) { .mf-auth-card { padding: 44px 44px 36px; border-radius: var(--r-card-xl); } }
.mf-auth-card--wide { max-width: 600px; }
.mf-auth-card--center { text-align: center; }

.mf-auth-card__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 0 20px;
  border-radius: 20px;
  background: var(--cta-tint);
  color: var(--cta-edge);
  font-size: 1.5rem;
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 1px rgba(248, 58, 90, .18), 0 4px 0 rgba(248, 58, 90, .12);
}
.mf-auth-card__icon > * { transform: rotate(6deg); }
.mf-auth-card__head > .mf-auth-card__icon,
.mf-auth-card > .mf-auth-card__icon,
.mf-auth-card--center .mf-auth-card__icon { display: grid; }
.mf-auth-card--center .mf-auth-card__icon { margin-inline: auto; }
.mf-auth-card--center .mf-auth__eyebrow { display: flex; justify-content: center; }
.mf-auth-card--center .mf-auth__sub { max-width: 44ch; margin-inline: auto; }
.mf-auth-card__icon svg { width: 28px; height: 28px; }
.mf-auth-card__icon::after {
  content: "";
  position: absolute;
  right: -12px; top: -10px;
  width: 18px; height: 18px;
  background: var(--brand-grad);
  -webkit-mask: var(--bolt-mask) center / contain no-repeat;
  mask: var(--bolt-mask) center / contain no-repeat;
  transform: rotate(6deg);
}
.mf-auth-card__icon--success { background: #E4F6EE; color: var(--success); box-shadow: inset 0 0 0 1px rgba(30, 158, 106, .2), 0 4px 0 rgba(30, 158, 106, .14); }
.mf-auth-card__icon--error { background: #FDECEC; color: #B42318; box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .18), 0 4px 0 rgba(220, 38, 38, .1); }
.mf-auth-card__icon--error::after,
.mf-auth-card__icon--plain::after { content: none; }
.mf-auth-card__icon--neutral { background: var(--surface-2); color: var(--heading); box-shadow: inset 0 0 0 1px var(--border), 0 4px 0 var(--border); }

.mf-auth-card__title {
  margin: 0 0 10px;
  color: var(--heading);
  font: 800 clamp(1.5rem, 1.25rem + 1vw, 2rem)/1.15 var(--font-display);
  letter-spacing: -.03em;
}
.mf-auth-card__text { margin: 0 0 12px; color: var(--body); font-size: 1rem; line-height: 1.65; }
.mf-auth-card__text:last-child { margin-bottom: 0; }
.mf-auth-card__text a { color: var(--cta-edge); font-weight: 700; }
.mf-auth-card__strong { color: var(--heading); font-weight: 700; overflow-wrap: anywhere; }
.mf-auth-card__head { margin-bottom: 26px; }
.mf-auth-card--center .mf-auth-card__head .mf-auth__title::after { margin-inline: auto; }
.mf-auth-card__divider { height: 1px; margin: 24px 0; background: var(--border); border: 0; }

.mf-auth-card__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
@media (min-width: 576px) {
  .mf-auth-card__actions { flex-direction: row; justify-content: center; }
  .mf-auth-card__actions > * { flex: 1 1 0; }
  .mf-auth-card__actions--single > * { flex: 0 1 auto; min-width: 220px; }
}
.mf-auth-card__actions form { display: contents; }

/* Success panel inside a form card (forgot password) */
.mf-auth-card .auth__success-state { display: none; text-align: center; padding: 8px 0 4px; }
.mf-auth-card .auth__success-state .mf-auth-card__icon { margin-bottom: 16px; }

/* Detail rows (wallet verification) */
.mf-auth-rows { margin: 0; padding: 4px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.mf-auth-rows__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.mf-auth-rows__row:last-child { border-bottom: 0; }
.mf-auth-rows__row dt { margin: 0; color: var(--muted); font-weight: 500; }
.mf-auth-rows__row dd { margin: 0; color: var(--heading); font-weight: 700; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.mf-auth-amount { display: grid; gap: 2px; margin: 0 0 20px; }
.mf-auth-amount__label { color: var(--muted); font: 600 .75rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.mf-auth-amount__value { color: var(--heading); font: 600 clamp(2.25rem, 1.8rem + 2vw, 3rem)/1.1 var(--font-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mf-auth-note {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #FFF1E7;
  box-shadow: inset 0 0 0 1px #FBD5BC;
  color: #8A3A0A;
  font-size: .875rem;
  line-height: 1.5;
  text-align: left;
}
.mf-auth-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.mf-auth-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #E9F7F1;
  box-shadow: inset 0 0 0 1px #BFE6D5;
  color: #145C40;
  font-weight: 700;
}
.mf-btn--deny { --btn-bg: #fff; --btn-fg: #B42318; --btn-edge: var(--border-strong); }
.mf-btn--deny:hover { background: #FEF3F2; color: #B42318; }

/* Standalone wallet-verify pages (no site header) */
.mf-auth--standalone { margin: 0; min-height: 100vh; min-height: 100dvh; }
.mf-auth--standalone *, .mf-auth--standalone *::before, .mf-auth--standalone *::after { box-sizing: border-box; }
.mf-auth--standalone .mf-auth__shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 48px; }
.mf-auth__logo { display: block; margin: 0 auto 24px; }
.mf-auth__logo img { display: block; width: 160px; height: auto; }
@media (min-width: 768px) { .mf-auth--standalone .mf-auth__shell { padding-top: 56px; } }

/* 6. Free likes claim widget inside a status card --------------------------- */
.mf-auth-card .claim-card__loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0 6px; color: var(--muted); font-weight: 500; }
.mf-auth-card .claim-card__loading i { color: var(--cta); }
.mf-auth-card .claim-card__invalid { margin: 0; padding: 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--body); text-align: center; line-height: 1.6; }
.mf-auth-card .claim-card__invalid a { color: var(--cta-edge); font-weight: 700; }
.mf-auth-card__widget { margin-top: 4px; text-align: left; }

/* 7. Link-guest-orders modal (sign in / sign up) --------------------------- */
#link-orders-modal .modal-dialog { max-width: 420px; }
#link-orders-modal .modal-content { border: none; border-radius: 20px; box-shadow: var(--float-shadow); overflow: hidden; }
.link-orders-modal { position: relative; padding: 28px 24px 24px; }
.link-orders-modal::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-grad); }
.link-orders-modal__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.link-orders-modal__badge { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--cta-tint); color: var(--cta-edge); font-size: 1.05rem; }
.link-orders-modal__title { flex-grow: 1; margin: 0; color: var(--heading); font: 800 1.125rem/1.3 var(--font-display); }
.link-orders-modal__close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: none; border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.link-orders-modal__close:hover { background: var(--surface-2); color: var(--heading); }
.link-orders-modal__text { margin-bottom: 20px; color: var(--body); font-size: .9375rem; line-height: 1.55; }
.link-orders-modal__btn { width: 100%; }
.link-orders-modal__btn + .link-orders-modal__btn { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .mf-auth .form-control, .mf-auth .auth__password-toggle, .mf-auth__meter span { transition: none; }
}

/* M-07 (QA fix pass 2026-09-24): text links in the auth forms had 19-22px
   tall hit areas ("Forgot your password?", "Create one", "Sign In",
   "Back to Sign In", "Request a new link"). 44px tall now; the negative
   block margin keeps the visual spacing the same. */
.mf-auth .auth__forgot a,
.mf-auth .auth__footer-link a,
.mf-auth .mf-auth__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 4px;
  margin-block: -12px;
  vertical-align: middle;
}
.mf-auth .auth__forgot { margin: 4px 0 24px; }
.mf-auth .auth__footer-link { padding-top: 24px; }

/* Flash notices on /signin (e.g. "You have been logged out.") */
.mf-auth__alert--success { background: #E8F7EF; box-shadow: inset 0 0 0 1px #A9DFC4; color: #0F6B45; }
.mf-auth__alert--info { background: var(--surface-blue, #F5FAFF); box-shadow: inset 0 0 0 1px #C9DDF5; color: var(--heading); }
