/* Friends App · Escritorio: login existente sin cambios.
   Una sola capa de presentación para INICIO DE SESIÓN.
   Registro y recuperación se rigen exclusivamente por native-auth.css.
   El encabezado vive fuera del área de scroll, con espacio propio reservado:
   los botones nunca pueden invadirlo, ni al abrir el teclado móvil. */

body .bf-auth-gate.is-login-view {
  --bf-login-ink: #1a1a1d;
  --bf-login-muted: #818189;
  --bf-login-surface: #f7f7f8;
  --bf-login-line: #e8e8ec;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
}
body .bf-auth-gate.is-login-view .bf-auth-gate-card {
  display: flex !important;
  flex-direction: column !important;
  width: min(472px, calc(100vw - 36px)) !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(var(--bf-auth-viewport-height, 100dvh) - 36px) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(25,25,30,.06) !important;
  border-radius: 24px !important;
  background: white !important;
  box-shadow: 0 24px 75px rgba(24,24,30,.15) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body .bf-auth-gate.is-login-view.is-open .bf-auth-gate-card {
  transform: none !important;
}
body .bf-auth-gate.is-login-view .bf-auth-gate-handle,
body .bf-auth-gate.is-login-view [data-bf-auth-drag-handle] { display: none !important; }

/* Encabezado de Cuenta: una única fila estable, sin solapamientos.
   Título y banana a la izquierda; cierre a la derecha, ambos dentro del flujo. */
body .bf-auth-gate.is-login-view .bf-auth-gate-header {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 38px !important;
  gap: 16px !important;
  align-items: center !important;
  justify-items: stretch !important;
  position: relative !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 25px 26px 16px !important;
  border: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: left !important;
  touch-action: auto !important;
}
body .bf-auth-gate.is-login-view .bf-auth-gate-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
body .bf-auth-gate.is-login-view .bf-auth-gate-logo-shell { display: none !important; }
body .bf-auth-gate.is-login-view .bf-auth-gate-copy {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
body .bf-auth-gate.is-login-view .bf-auth-gate-copy::before { display: none !important; content: none !important; }
body .bf-auth-gate.is-login-view .bf-login-title-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}
body .bf-auth-gate.is-login-view .bf-login-title-inline h2 {
  margin: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  color: #1b1b1e !important;
  font-size: 24px !important;
  font-weight: 790 !important;
  line-height: 1.2 !important;
  letter-spacing: -.043em !important;
  white-space: nowrap !important;
}
body .bf-auth-gate.is-login-view .bf-login-brand-glyph {
  display: block !important;
  flex: 0 0 25px !important;
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  vertical-align: middle !important;
}
body .bf-auth-gate.is-login-view .bf-auth-gate-copy p { display: none !important; }
body .bf-auth-gate.is-login-view .bf-auth-gate-close {
  box-sizing: border-box !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 3 !important;
  display: grid !important;
  place-items: center !important;
  justify-self: end !important;
  align-self: center !important;
  flex: none !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29,29,34,.08) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #29292d !important;
  box-shadow: 0 4px 14px rgba(20,20,25,.065) !important;
  opacity: 1 !important;
  transform: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
body .bf-auth-gate.is-login-view .bf-auth-gate-close svg {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
body .bf-auth-gate.is-login-view .bf-auth-gate-close:hover {
  background: #f7f7f8 !important;
  border-color: rgba(29,29,34,.13) !important;
  box-shadow: 0 5px 16px rgba(20,20,25,.08) !important;
  transform: none !important;
}
body .bf-auth-gate.is-login-view .bf-auth-gate-close:active { background: #ededf0 !important; transform: none !important; }

/* Única región desplazable; nunca se mete bajo la cabecera. */
body .bf-auth-gate.is-login-view .bf-auth-gate-content {
  display: block !important;
  position: relative !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 13px 24px 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  background: white !important;
}
body .bf-auth-gate.is-login-view .bf-auth-gate-content::-webkit-scrollbar { display: none; }
body .bf-auth-gate.is-login-view #loginSheet {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-native-auth-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
}

/* Logotipos y botones sociales, alineados con los campos de acceso. */
body .bf-auth-gate.is-login-view #loginSheet .bf-login-social-options {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-social-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 49px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 13px !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 740 !important;
  letter-spacing: -.01em !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color .18s ease, border-color .18s ease !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-social-button--google {
  border: 1px solid var(--bf-login-line) !important;
  background: #fff !important;
  color: #202124 !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-social-button--apple {
  border: 1px solid #18181b !important;
  background: #18181b !important;
  color: white !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-social-button--google:hover { border-color: #ceced5 !important; }
body .bf-auth-gate.is-login-view #loginSheet .bf-login-social-button--apple:hover { background: #303033 !important; }
body .bf-auth-gate.is-login-view #loginSheet .bf-login-social-button img {
  display: block !important;
  flex: 0 0 auto !important;
  width: 23px !important;
  height: 23px !important;
  object-fit: contain !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-social-button img.bf-login-apple-icon {
  width: 24px !important;
  height: 24px !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-provider-status {
  margin: 0 !important;
  padding: 0 !important;
  color: #85858d !important;
  font-size: 10px !important;
  font-weight: 520 !important;
  line-height: 1.35 !important;
  text-align: center !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-provider-notice {
  margin: 0 !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  background: #f7f7f8 !important;
  color: #55565a !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-provider-notice[hidden] { display: none !important; }
body .bf-auth-gate.is-login-view #loginSheet .bf-login-divider {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 17px 0 !important;
  color: #898991 !important;
  font-size: 11px !important;
  text-align: center !important;
  white-space: nowrap !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-divider::before,
body .bf-auth-gate.is-login-view #loginSheet .bf-login-divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: #ededf0;
}

/* Campos y llamada principal, estilo Cuenta > Ubicación. */
body .bf-auth-gate.is-login-view #loginSheet .bf-login-phone-field,
body .bf-auth-gate.is-login-view #loginSheet .bf-login-password-field {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(23,23,29,.065) !important;
  border-radius: 16px !important;
  background: var(--bf-login-surface) !important;
  box-shadow: none !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-auth-field-label {
  margin: 0 0 7px 0 !important;
  color: #45454b !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-auth-field > small {
  margin: 7px 0 0 !important;
  color: #898990 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-auth-control {
  min-width: 0 !important;
  min-height: 48px !important;
  border: 1px solid #e2e2e6 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-auth-control:focus-within {
  border-color: #ababaf !important;
  box-shadow: 0 0 0 3px rgba(30,30,35,.055) !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-auth-control input {
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 0 12px !important;
  color: #26262a !important;
  font-size: 16px !important; /* iOS: evita zoom al enfocar */
  font-weight: 540 !important;
  letter-spacing: normal !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-auth-control--phone .bf-auth-phone-prefix {
  min-width: 52px !important;
  border-color: #e2e2e6 !important;
  background: #f0f0f2 !important;
  color: #55565d !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-auth-password-toggle {
  min-width: 55px !important;
  margin: 0 !important;
  padding: 0 9px !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-next,
body .bf-auth-gate.is-login-view #loginSheet .bf-login-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 1px 0 0 !important;
  padding: 0 14px !important;
  border: 1px solid #18181b !important;
  border-radius: 13px !important;
  background: #18181b !important;
  color: #fff !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 740 !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-next svg,
body .bf-auth-gate.is-login-view #loginSheet .bf-login-submit svg {
  width: 17px !important;
  height: 17px !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-next:hover,
body .bf-auth-gate.is-login-view #loginSheet .bf-login-submit:hover { background: #303033 !important; }
body .bf-auth-gate.is-login-view #loginSheet .bf-auth-panel-switch {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin: 17px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #77777f !important;
  font-size: 12px !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-auth-panel-switch button {
  color: #19191b !important;
  font-size: inherit !important;
  font-weight: 760 !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-change-row,
body .bf-auth-gate.is-login-view #loginSheet .bf-login-password-field,
body .bf-auth-gate.is-login-view #loginSheet .bf-login-reset-row,
body .bf-auth-gate.is-login-view #loginSheet .bf-login-submit { display: none !important; }
body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-social-options,
body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-divider,
body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-next,
body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-signup { display: none !important; }
body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-password-field { display: flex !important; }
body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-reset-row { display: flex !important; justify-content: flex-end !important; }
body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-submit { display: inline-flex !important; }
body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-change-row { display: flex !important; justify-content: flex-start !important; }
body .bf-auth-gate.is-login-view #loginSheet .bf-login-change-row[hidden] { display: none !important; }
body .bf-auth-gate.is-login-view #loginSheet .bf-login-back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 0 0 3px !important;
  border: 0 !important;
  background: none !important;
  color: #66666e !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 620 !important;
}
body .bf-auth-gate.is-login-view #loginSheet .bf-login-back svg { width: 15px !important; height: 15px !important; }
body .bf-auth-gate.is-login-view #loginSheet .bf-login-reset-row button { color: #66666b !important; font-size: 12px !important; font-weight: 650 !important; }
body .bf-auth-gate.is-login-view #loginSheet .login-message { font-size: 12px !important; }
body .bf-auth-gate.is-login-view :is(button,input):focus-visible {
  outline: 3px solid rgba(255,91,36,.2) !important;
  outline-offset: 2px !important;
}

/* Pantalla pequeña: modal inferior y scroll limitado AL CUERPO, no al encabezado. */

/* ==============================================================
   Friends App · LOGIN MÓVIL (únicamente vista login).
   Registro y recuperación no utilizan esta presentación.
   Reemplaza la cabecera superior heredada por una cabecera interna
   idéntica a las hojas de Me gusta / Ubicación.
   ============================================================== */
.bf-auth-gate .bf-login-mobile-head { display: none; }
@media (max-width: 760px) {
  body .bf-auth-gate.is-login-view {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    --bf-login-ink: #191919;
    --bf-login-muted: #77777d;
    --bf-login-surface: #f7f7f8;
  }
  body .bf-auth-gate.is-login-view .bf-auth-gate-card,
  body .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-card {
    align-self: flex-end !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(var(--bf-auth-viewport-height, 100dvh) - 6px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 27px 27px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 -12px 40px rgba(0,0,0,.09) !important;
    overflow: hidden !important;
    transform: translateY(0) !important;
  }
  /* En login desaparece la barra global. Registro y reset permanecen intactos. */
  body .bf-auth-gate.is-login-view .bf-auth-gate-header,
  body .bf-auth-gate.is-login-view .bf-auth-gate-handle,
  body .bf-auth-gate.is-login-view [data-bf-auth-drag-handle] {
    display: none !important;
  }
  body .bf-auth-gate.is-login-view .bf-auth-gate-content,
  body .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-content {
    display: block !important;
    flex: 0 1 auto !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 0 22px max(20px, env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    background: #fff !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  body .bf-auth-gate.is-login-view .bf-auth-gate-content::-webkit-scrollbar { display: none !important; }
  body .bf-auth-gate.is-login-view #loginSheet {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    background: #fff !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-mobile-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 74px !important;
    margin: 0 !important;
    padding: 23px 0 15px !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-mobile-head h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif !important;
    color: #181818 !important;
    font-size: 23px !important;
    font-weight: 750 !important;
    line-height: 1.15 !important;
    letter-spacing: -.035em !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-mobile-close {
    display: inline-grid !important;
    flex: 0 0 34px !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    border: 1px solid #e7e7e9 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #1b1b1d !important;
    box-shadow: 0 3px 11px rgba(0,0,0,.04) !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-mobile-close svg {
    width: 17px !important;
    height: 17px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.85 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-social-options,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-divider { display: none !important; }
  body .bf-auth-gate.is-login-view #loginSheet .bf-native-auth-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-phone-field,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-password-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    padding: 13px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    border: 1px solid #ededee !important;
    background: #f7f7f8 !important;
    box-shadow: none !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-auth-field-label {
    margin: 0 !important;
    padding: 0 !important;
    color: #6a6a70 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 650 !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-auth-field > small { display: none !important; }
  body .bf-auth-gate.is-login-view #loginSheet .bf-auth-control,
  body .bf-auth-gate.is-login-view #loginSheet .bf-auth-control:focus-within {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e7e7ea !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-auth-control:focus-within { border-color: #a9a9ad !important; }
  body .bf-auth-gate.is-login-view #loginSheet .bf-auth-control input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    background: transparent !important;
    color: #1b1b1e !important;
    font-size: 16px !important; /* Safari iOS: no zoom automático */
    font-weight: 500 !important;
    box-shadow: none !important;
    outline: none !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-auth-control--phone .bf-auth-phone-prefix {
    flex: 0 0 49px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    background: #f2f2f3 !important;
    border-right: 1px solid #e7e7ea !important;
    color: #545459 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
  }
  /* Solo el paso activo. Teléfono en texto simple sobre el segundo campo. */
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-password-field,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-change-row,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-submit,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-reset-row { display: none !important; }
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-phone-field,
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-next,
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-signup { display: none !important; }
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-password-field { display: flex !important; }
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-change-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-change-row[hidden] { display: none !important; }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-confirmed-phone {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 3px !important;
    align-items: flex-start !important;
    min-width: 0 !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-confirmed-label {
    color: #8b8b91 !important;
    font-size: 11px !important;
    font-weight: 560 !important;
    line-height: 1.3 !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-phone-display {
    color: #202024 !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-back {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    border: 0 !important;
    background: none !important;
    color: #66666c !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-back svg,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-back-desktop { display: none !important; }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-back-mobile { display: inline !important; }
  body .bf-auth-gate.is-login-view #loginSheet .bf-auth-control--password input {
    padding-right: 12px !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-auth-password-toggle {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 11px !important;
    min-width: 58px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66666c !important;
    font-size: 12px !important;
    box-shadow: none !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-reset-row {
    justify-content: flex-end !important;
    margin: -4px 0 0 !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-reset-row { display: flex !important; }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-reset-row button {
    border: 0 !important;
    background: transparent !important;
    color: #77777c !important;
    font-size: 11px !important;
    font-weight: 550 !important;
    box-shadow: none !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-next,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-submit {
    align-self: flex-end !important;
    justify-content: center !important;
    gap: 0 !important;
    width: auto !important;
    min-width: 115px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 2px 0 0 !important;
    padding: 0 14px !important;
    border: 1px solid #1a1a1c !important;
    border-radius: 10px !important;
    background: #1a1a1c !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 670 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-next svg,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-submit svg { display: none !important; }
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-submit { display: inline-flex !important; }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-signup {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    color: #77777c !important;
    font-size: 12px !important;
    font-weight: 500 !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-signup button {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: #202024 !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .login-message {
    margin: 0 !important;
    padding: 11px 12px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #f5f5f6 !important;
    color: #4b4b52 !important;
    font-size: 12px !important;
    font-weight: 530 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .login-message[hidden] { display: none !important; }
  body .bf-auth-gate.is-login-view #loginSheet :is(button,input):focus-visible {
    outline: 2px solid #5c5c63 !important;
    outline-offset: 2px !important;
  }
}
@media (max-width: 359px) {
  body .bf-auth-gate.is-login-view .bf-auth-gate-content { padding-left: 18px !important; padding-right: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body .bf-auth-gate.is-login-view *,
  body .bf-auth-gate.is-login-view *::before,
  body .bf-auth-gate.is-login-view *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ==============================================================
   Friends App / LOGIN móvil · sin tirador superior (2026-10-18)
   La cabecera real está dentro de #loginSheet. No pintar ni reservar
   espacio para barras/grabbers generados por CSS o DOM heredado.
   Limitado a login, sin alterar Registro/Recuperación ni escritorio.
   ============================================================== */
@media screen and (max-width: 760px) {
  body .bf-auth-gate.is-login-view .bf-auth-gate-card > .bf-auth-gate-handle,
  body .bf-auth-gate.is-login-view .bf-auth-gate-card > [data-bf-auth-drag-handle],
  body .bf-auth-gate.is-login-view .bf-auth-gate-card > [class*="drag-handle"],
  body .bf-auth-gate.is-login-view .bf-auth-gate-handle,
  body .bf-auth-gate.is-login-view [data-bf-auth-drag-handle],
  body .bf-auth-gate.is-login-view .bf-auth-gate-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Las barras decorativas también se habían dibujado con pseudo-elementos. */
  body .bf-auth-gate.is-login-view .bf-auth-gate-card::before,
  body .bf-auth-gate.is-login-view .bf-auth-gate-card::after,
  body .bf-auth-gate.is-login-view .bf-auth-gate-header::before,
  body .bf-auth-gate.is-login-view .bf-auth-gate-header::after,
  body .bf-auth-gate.is-login-view #loginSheet::before,
  body .bf-auth-gate.is-login-view #loginSheet::after,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-mobile-head::before,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-mobile-head::after {
    content: none !important;
    display: none !important;
  }

  body .bf-auth-gate.is-login-view .bf-auth-gate-card,
  body .bf-auth-gate.is-login-view .bf-auth-gate-content,
  body .bf-auth-gate.is-login-view #loginSheet {
    padding-top: 0 !important;
    margin-top: 0 !important;
    row-gap: 0 !important;
  }
}

/* Friends App · Login móvil: acciones alineadas al centro (2026-10-18).
   Únicamente teléfono/contraseña; no afecta a registro, recuperación ni PC. */
@media screen and (max-width: 760px) {
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-next,
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-submit {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body .bf-auth-gate.is-login-view #loginSheet .bf-login-reset-row,
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step='password'] .bf-login-reset-row {
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  body .bf-auth-gate.is-login-view #loginSheet .bf-login-reset-row button {
    text-align: center !important;
  }
}

/* ================================================================
   Friends App · Login móvil / teclado virtual · hoja compacta.
   Anula SOLO para Inicio Sesión la expansión a pantalla completa
   heredada de native-auth.css (Safari iOS y Chrome Android).
   Registro y Recuperación mantienen exactamente su presentación.
   ================================================================ */
@media screen and (max-width: 760px) {
  body .bf-auth-gate.is-login-view.is-keyboard-open {
    position: fixed !important;
    inset: auto !important;
    top: var(--bf-auth-viewport-top, 0px) !important;
    left: var(--bf-auth-viewport-left, 0px) !important;
    width: var(--bf-auth-viewport-width, 100vw) !important;
    height: var(--bf-auth-viewport-height, 100dvh) !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
    background: transparent !important;
    contain: none !important;
    touch-action: pan-y !important;
  }
  /* Desactivar el antiguo escudo blanco que cubría toda la pantalla. */
  body .bf-auth-gate.is-login-view.is-keyboard-open::before {
    content: none !important;
    display: none !important;
  }
  body .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-backdrop {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(18, 18, 20, .32) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
    pointer-events: auto !important;
  }
  body .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-card,
  body.bf-web-page .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-card,
  body.bf-auth-standalone .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-card {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 1 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(var(--bf-auth-viewport-height, 100dvh) - 4px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 27px 27px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 -12px 35px rgba(0, 0, 0, .09) !important;
    overflow: hidden !important;
    contain: none !important;
    touch-action: pan-y !important;
    transform: none !important;
    transition: none !important;
  }
  body .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-content {
    display: block !important;
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scroll-behavior: auto !important;
    scroll-padding: 12px !important;
    padding-bottom: 12px !important;
  }
  body .bf-auth-gate.is-login-view.is-keyboard-open #loginSheet,
  body .bf-auth-gate.is-login-view.is-keyboard-open #loginSheet .bf-native-auth-form {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* Friends 2026-10: teléfono, contraseña y número no encontrado comparten
   la misma hoja compacta. Solo login móvil (registro y PC intactos). */
@media screen and (max-width: 760px) {
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-not-found {
    display: none !important;
    padding: 8px 0 12px !important;
    color: #222 !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step="not-found"] .bf-native-auth-form,
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step="not-found"] .bf-login-signup { display: none !important; }
  body .bf-auth-gate.is-login-view #loginSheet[data-login-step="not-found"] .bf-login-not-found:not([hidden]) {
    display: flex !important; flex-direction: column !important; gap: 14px !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-not-found-text {
    margin: 0 !important; padding: 0 !important;
    color: #68686e !important; font-size: 14px !important; line-height: 1.5 !important;
    font-weight: 450 !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-not-found-number {
    margin: 0 !important; padding: 0 !important;
    color: #171719 !important; font-size: 16px !important; font-weight: 650 !important;
    font-variant-numeric: tabular-nums !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-not-found-actions {
    display: flex !important; align-items: center !important; justify-content: center !important;
    flex-wrap: wrap !important; gap: 10px !important; margin-top: 3px !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-not-found-actions button {
    appearance: none !important; border-radius: 10px !important;
    min-height: 36px !important; padding: 0 12px !important; font: inherit !important;
    font-size: 12px !important; font-weight: 650 !important; box-shadow: none !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-not-found-retry {
    background: white !important; border: 1px solid #cdced0 !important; color: #171719 !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-not-found-register {
    background: #1b1b1d !important; border: 1px solid #1b1b1d !important; color: white !important;
  }
  body .bf-auth-gate.is-login-view #loginSheet .bf-login-next:disabled {
    opacity: .6 !important; cursor: wait !important;
  }
  /* Safari iOS / Chrome Android: hoja acotada al viewport visual, no una
     hoja a pantalla completa. La regla se aplica a los dos pasos. */
  body .bf-auth-gate.is-login-view .bf-auth-gate-card {
    max-height: min(calc(100dvh - 6px), calc(var(--bf-auth-viewport-height, 100dvh) - 6px)) !important;
  }
  body .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-card {
    max-height: calc(var(--bf-auth-viewport-height, 100dvh) - 4px) !important;
  }
  body .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-content {
    padding-bottom: 8px !important;
    max-height: calc(var(--bf-auth-viewport-height, 100dvh) - 4px) !important;
  }
  body .bf-auth-gate.is-login-view.is-keyboard-open #loginSheet .bf-login-mobile-head {
    min-height: 54px !important;
    padding-top: 12px !important;
    padding-bottom: 8px !important;
  }
  body .bf-auth-gate.is-login-view.is-keyboard-open #loginSheet .bf-native-auth-form {
    gap: 9px !important;
  }
  body .bf-auth-gate.is-login-view.is-keyboard-open #loginSheet .bf-login-phone-field,
  body .bf-auth-gate.is-login-view.is-keyboard-open #loginSheet .bf-login-password-field {
    padding: 9px 11px !important;
  }
  body .bf-auth-gate.is-login-view.is-keyboard-open #loginSheet .bf-login-reset-row,
  body .bf-auth-gate.is-login-view.is-keyboard-open #loginSheet[data-login-step="password"] .bf-login-reset-row {
    margin-top: 0 !important;
  }
  @supports not (height: 100dvh) {
    body .bf-auth-gate.is-login-view .bf-auth-gate-card {
      max-height: calc(var(--bf-auth-viewport-height, 100vh) - 6px) !important;
    }
  }
}

/* ===============================================================
   FRIENDS · Recuperación por enlace · Hoja móvil monocromática
   Aislada del login y registro. El propio modal mide su contenido.
   =============================================================== */
@media screen and (max-width: 760px) {
  body .bf-auth-gate.is-reset-view {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-gate-handle,
  body .bf-auth-gate.is-reset-view [data-bf-auth-drag-handle],
  body .bf-auth-gate.is-reset-view .bf-auth-gate-header,
  body .bf-auth-gate.is-reset-view .bf-auth-gate-close {
    display: none !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-gate-card,
  body.bf-web-page .bf-auth-gate.is-reset-view .bf-auth-gate-card,
  body.bf-auth-standalone .bf-auth-gate.is-reset-view .bf-auth-gate-card,
  body .bf-auth-gate.is-reset-view.is-keyboard-open .bf-auth-gate-card {
    box-sizing: border-box !important;
    align-self: flex-end !important;
    flex: 0 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(var(--bf-auth-viewport-height, 100vh) - 4px) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,.09) !important;
    transform: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  body .bf-auth-gate.is-reset-view.is-keyboard-open .bf-auth-gate-backdrop {
    background: rgba(0,0,0,.26) !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-gate-content,
  body .bf-auth-gate.is-reset-view.is-keyboard-open .bf-auth-gate-content {
    box-sizing: border-box !important;
    flex: 0 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(var(--bf-auth-viewport-height, 100vh) - 4px) !important;
    width: 100% !important;
    padding: 0 20px calc(15px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    background: #fff !important;
  }
  body .bf-auth-gate.is-reset-view.is-keyboard-open .bf-auth-gate-content {
    padding-bottom: 9px !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-minimal {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-mobile-head {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 72px !important;
    margin: 0 0 6px !important;
    padding: 15px 0 10px !important;
    background: #fff !important;
  }
  body .bf-auth-gate.is-reset-view.is-keyboard-open .bf-reset-mobile-head {
    min-height: 55px !important;
    padding: 8px 0 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-mobile-head h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: #171717 !important;
    font-size: 23px !important;
    font-weight: 760 !important;
    letter-spacing: -.045em !important;
    line-height: 1.2 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-mobile-close {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 1px solid #e4e4e4 !important;
    border-radius: 50% !important;
    color: #171717 !important;
    background: #fff !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-mobile-close svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.85px !important;
    stroke-linecap: round !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-intro,
  body .bf-auth-gate.is-reset-view .bf-reset-hint {
    margin: 0 0 15px !important;
    color: #727272 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    font-weight: 450 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-hint { margin: 0 0 18px !important; }
  body .bf-auth-gate.is-reset-view .bf-native-auth-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 11px !important;
    padding: 0 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #ededed !important;
    border-radius: 17px !important;
    background: #f7f7f7 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-field-label {
    color: #626262 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-control {
    width: 100% !important;
    min-height: 42px !important;
    height: 42px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-control:focus-within {
    border-color: #777 !important;
    outline: none !important;
    box-shadow: none !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-control input {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
    color: #191919 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-text-size-adjust: 100% !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-phone-prefix,
  body .bf-auth-gate.is-reset-view .bf-auth-password-toggle {
    color: #4a4a4a !important;
    background: transparent !important;
    border-color: #e5e5e5 !important;
    box-shadow: none !important;
    font-size: 12px !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-action {
    display: flex !important;
    gap: 9px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-action button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-action .bf-auth-primary-button {
    border: 1px solid #171717 !important;
    background: #171717 !important;
    color: #fff !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-action .bf-auth-secondary-button {
    border: 1px solid #dedede !important;
    background: #fff !important;
    color: #171717 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-panel-switch { margin: 10px 0 0 !important; padding: 0 !important; text-align: center !important; }
  body .bf-auth-gate.is-reset-view .bf-auth-panel-switch button { color: #696969 !important; background: transparent !important; font-size: 12px !important; }
  body .bf-auth-gate.is-reset-view .form-message,
  body .bf-auth-gate.is-reset-view .form-message.error,
  body .bf-auth-gate.is-reset-view .form-message.success {
    font-size: 12px !important;
    line-height: 1.5 !important;
    padding: 9px 12px !important;
    background: #f5f5f5 !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 11px !important;
    color: #333 !important;
    box-shadow: none !important;
  }
  body .bf-auth-gate.is-reset-view .rp-step:not(.active) { display: none !important; }
  body .bf-auth-gate.is-reset-view .rp-step.active { display: block !important; }
}
@media screen and (min-width: 761px) {
  .bf-auth-gate .bf-reset-mobile-head { display: none !important; }
}

@media screen and (max-width: 760px) {
  body .bf-auth-gate.is-reset-view .bf-reset-minimal .bf-auth-panel-switch { background: transparent !important; border: 0 !important; box-shadow: none !important; }
  body .bf-auth-gate.is-reset-view .bf-reset-minimal .bf-auth-panel-switch button { background: transparent !important; border: 0 !important; padding: 8px 0 !important; text-decoration: none !important; }
}


/* Friends App · Recuperación: sin tirador superior, incluidos avisos tras el
   envío y pantalla de nueva contraseña. Solo móvil; Registro no se modifica.
   Debe cargarse después de native-auth(.min).css. */
@media screen and (max-width: 760px) {
  body .bf-auth-gate.is-reset-view .bf-auth-gate-card > .bf-auth-gate-handle,
  body .bf-auth-gate.is-reset-view .bf-auth-gate-handle,
  body .bf-auth-gate.is-reset-view [data-bf-auth-drag-handle],
  body .bf-auth-gate.is-reset-view .bf-auth-gate-header {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-gate-card::before,
  body .bf-auth-gate.is-reset-view .bf-auth-gate-card::after,
  body .bf-auth-gate.is-reset-view .bf-auth-gate-header::before,
  body .bf-auth-gate.is-reset-view .bf-auth-gate-header::after,
  body .bf-auth-gate.is-reset-view #resetPasswordSheet::before,
  body .bf-auth-gate.is-reset-view #resetPasswordSheet::after,
  body .bf-auth-gate.is-reset-view .bf-reset-mobile-head::before,
  body .bf-auth-gate.is-reset-view .bf-reset-mobile-head::after {
    content: none !important;
    display: none !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-gate-card {
    padding-top: 0 !important;
    row-gap: 0 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-auth-gate-content,
  body .bf-auth-gate.is-reset-view #resetPasswordSheet {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body .bf-auth-gate.is-reset-view .bf-reset-mobile-head {
    border: 0 !important;
    box-shadow: none !important;
  }
  /* Confirmación de envío: jerarquía y colores idénticos al modal principal. */
  body .bf-auth-gate.is-reset-view .rp-step[data-step="2"] .bf-reset-intro {
    color: #363636 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }
  body .bf-auth-gate.is-reset-view .rp-step[data-step="2"] .bf-reset-hint {
    color: #777 !important;
    background: #f7f7f7 !important;
    border: 1px solid #ededed !important;
    border-radius: 14px !important;
    margin: 0 0 16px !important;
    padding: 13px 14px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }
}

/* Friends · Recuperación completada: solo una acción explícita de acceso.
   Hereda el diseño monocromático de la recuperación y nunca muestra el tirador. */
.bf-auth-gate.is-reset-view #resetPasswordSheet[data-reset-step="4"] .bf-auth-panel-switch {
  display: none !important;
}
.bf-auth-gate.is-reset-view .bf-reset-success {
  text-align: center;
}
.bf-auth-gate.is-reset-view .bf-reset-success-title {
  margin: 0 0 10px;
  color: #171717;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.bf-auth-gate.is-reset-view .bf-reset-success .bf-reset-intro {
  margin-bottom: 18px;
  color: #727272;
  line-height: 1.5;
}
.bf-auth-gate.is-reset-view .bf-reset-success .bf-reset-action {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}
@media screen and (max-width: 760px) {
  /* El título se integra en la cabecera interna, igual que en Ubicación. */
  body .bf-auth-gate.is-reset-view #resetPasswordSheet[data-reset-step="4"] .bf-reset-success-title {
    display: none !important;
  }
  body .bf-auth-gate.is-reset-view #resetPasswordSheet[data-reset-step="4"] .bf-reset-success .bf-reset-intro {
    margin: 5px 0 19px !important;
    color: #727272 !important;
    font-size: 13px !important;
    text-align: left !important;
  }
  body .bf-auth-gate.is-reset-view #resetPasswordSheet[data-reset-step="4"] .bf-reset-action {
    justify-content: center !important;
    padding-bottom: 3px !important;
  }
  /* También al finalizar: cero barra superior, pseudos o margen de tirador. */
  body .bf-auth-gate.is-reset-view #resetPasswordSheet[data-reset-step="4"]::before,
  body .bf-auth-gate.is-reset-view #resetPasswordSheet[data-reset-step="4"]::after { content: none !important; }
}
