/* =========================================================
   BANANA FRIENDS · AUTH NATIVO PRODUCCIÓN
   Login, registro y recuperación sin iframe
========================================================= */

html.bf-auth-gate-open,
body.bf-auth-gate-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.bf-auth-gate-open {
  width: 100% !important;
}

.bf-auth-gate,
.bf-auth-gate *,
.bf-auth-gate *::before,
.bf-auth-gate *::after {
  box-sizing: border-box;
}

.bf-auth-gate[hidden],
.bf-auth-gate [hidden] {
  display: none !important;
}

.bf-auth-gate {
  --bf-auth-accent: #ff004f;
  --bf-auth-accent-hover: #e90049;
  --bf-auth-accent-soft: #fff0f5;
  --bf-auth-ink: #171719;
  --bf-auth-muted: #6f6f76;
  --bf-auth-line: rgba(25, 25, 28, 0.12);
  --bf-auth-control-bg: #f6f6f8;
  --bf-auth-viewport-height: 100dvh;
  --bf-auth-viewport-width: 100vw;
  --bf-auth-viewport-top: 0px;
  --bf-auth-viewport-left: 0px;
  --bf-auth-drag-opacity: 1;
  position: fixed !important;
  top: var(--bf-auth-viewport-top) !important;
  right: auto !important;
  bottom: auto !important;
  left: var(--bf-auth-viewport-left) !important;
  width: var(--bf-auth-viewport-width) !important;
  height: var(--bf-auth-viewport-height) !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.bf-auth-gate.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bf-auth-gate-backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(18, 18, 21, calc(0.42 * var(--bf-auth-drag-opacity))) !important;
  backdrop-filter: blur(16px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(125%) !important;
  cursor: default;
}

.bf-auth-gate-card {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  width: min(480px, calc(100vw - 44px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(var(--bf-auth-viewport-height) - 44px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #ffffff !important;
  border-radius: 28px !important;
  background: #ffffff !important;
  box-shadow: 0 34px 100px rgba(18, 18, 22, 0.24), 0 4px 18px rgba(18, 18, 22, 0.08) !important;
  transform: translateY(14px) scale(0.985) !important;
  opacity: 0;
  transition: transform 260ms cubic-bezier(.22, .8, .26, 1), opacity 200ms ease, width 220ms ease !important;
  outline: none !important;
}

.bf-auth-gate.is-register-view .bf-auth-gate-card {
  width: min(900px, calc(100vw - 44px)) !important;
}

.bf-auth-gate.is-open .bf-auth-gate-card {
  transform: translateY(0) scale(1) !important;
  opacity: 1;
}

.bf-auth-gate-card.is-dragging {
  transition: none !important;
}

.bf-auth-gate-handle {
  display: none;
}

.bf-auth-gate-header {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 92px !important;
  padding: 22px 64px 16px !important;
  border: 0 !important;
  background: transparent !important;
  flex: 0 0 auto !important;
  touch-action: pan-x;
}

.bf-auth-gate-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 0;
  text-align: left;
}

.bf-auth-gate-logo {
  display: block;
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px;
  object-fit: contain;
  user-select: none;
}

.bf-auth-gate-heading > div {
  min-width: 0;
}

.bf-auth-gate-heading h2 {
  margin: 0 !important;
  color: var(--bf-auth-ink) !important;
  font-size: clamp(1.36rem, 2vw, 1.65rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.08 !important;
}

.bf-auth-gate-heading p {
  margin: 5px 0 0 !important;
  color: var(--bf-auth-muted) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.bf-auth-gate-close {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f1f1f3 !important;
  color: #2a2a2e !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: transform 150ms ease, background-color 150ms ease !important;
}

.bf-auth-gate-close:hover {
  background: #e8e8eb !important;
  transform: scale(1.04) !important;
}

.bf-auth-gate-close:active {
  transform: scale(0.94) !important;
}

.bf-auth-gate-close svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.25 !important;
  stroke-linecap: round !important;
}

.bf-auth-gate-content {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0 26px 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 30, 35, 0.2) transparent;
}

.bf-auth-gate-content::-webkit-scrollbar {
  width: 6px;
}

.bf-auth-gate-content::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(30, 30, 35, 0.18);
}

.bf-native-auth-panel {
  width: 100%;
  margin: 0 auto;
  animation: bf-auth-panel-in 180ms ease both;
}

.bf-auth-gate.is-login-view .bf-native-auth-panel,
.bf-auth-gate.is-reset-view .bf-native-auth-panel {
  max-width: 420px;
}

@keyframes bf-auth-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.bf-native-auth-form,
.bf-auth-gate .registro-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bf-auth-gate .bf-auth-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bf-auth-ink) !important;
}

.bf-auth-gate .bf-auth-field-label {
  display: block !important;
  margin: 0 0 0 2px !important;
  color: #343438 !important;
  font-size: 0.79rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.bf-auth-gate .bf-auth-field small,
.bf-auth-gate .bf-auth-field-hint {
  display: block;
  min-height: 16px;
  margin: -1px 2px 0 !important;
  color: #818188 !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.bf-auth-gate .bf-auth-control {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 50px !important;
  overflow: hidden !important;
  border: 1px solid var(--bf-auth-line) !important;
  border-radius: 15px !important;
  background: var(--bf-auth-control-bg) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease !important;
}

.bf-auth-gate .bf-auth-control:focus-within {
  border-color: rgba(255, 0, 79, 0.58) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255, 0, 79, 0.1) !important;
}

.bf-auth-gate .bf-auth-control input,
.bf-auth-gate .bf-auth-control select,
.bf-auth-gate .bf-auth-control textarea {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--bf-auth-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 0.94rem !important;
  font-weight: 550 !important;
  line-height: 1.2 !important;
  appearance: none;
  -webkit-appearance: none;
}

.bf-auth-gate .bf-auth-control textarea {
  min-height: 104px !important;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  resize: vertical !important;
}

.bf-auth-gate .bf-auth-control input::placeholder,
.bf-auth-gate .bf-auth-control textarea::placeholder {
  color: #9a9aa0 !important;
  opacity: 1 !important;
}

.bf-auth-gate .bf-auth-control--phone .bf-auth-phone-prefix {
  display: grid !important;
  place-items: center !important;
  align-self: stretch !important;
  min-width: 54px !important;
  padding-left: 4px !important;
  border-right: 1px solid var(--bf-auth-line) !important;
  color: #45454a !important;
  font-size: 0.9rem !important;
  font-weight: 750 !important;
}

.bf-auth-gate .bf-auth-control--phone input {
  padding-left: 13px !important;
}

.bf-auth-gate .bf-auth-control--password input {
  padding-right: 84px !important;
}

.bf-auth-gate .bf-auth-password-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 9px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--bf-auth-accent) !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
  font-size: 0.75rem !important;
  font-weight: 750 !important;
  cursor: pointer !important;
}

.bf-auth-gate .bf-auth-control--select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #707078;
  border-bottom: 2px solid #707078;
  transform: translateY(-68%) rotate(45deg);
  pointer-events: none;
}

.bf-auth-gate .bf-auth-control--select select {
  padding-right: 42px !important;
}

.bf-auth-gate .bf-auth-control--date input {
  color-scheme: light;
}

.bf-auth-form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -3px;
}

.bf-auth-text-button,
.bf-auth-panel-switch button,
.bf-auth-gate .registro-resend-btn {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 3px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--bf-auth-accent) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.bf-auth-primary-button,
.bf-auth-secondary-button,
.bf-auth-gate .registro-btn,
.bf-auth-gate .glass-modal-btn.primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 1px solid var(--bf-auth-accent) !important;
  border-radius: 999px !important;
  background: var(--bf-auth-accent) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(255, 0, 79, 0.2) !important;
  font: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease !important;
}

.bf-auth-primary-button:hover,
.bf-auth-gate .registro-btn:not(.secondary):hover,
.bf-auth-gate .glass-modal-btn.primary:hover {
  background: var(--bf-auth-accent-hover) !important;
  border-color: var(--bf-auth-accent-hover) !important;
  box-shadow: 0 15px 32px rgba(255, 0, 79, 0.25) !important;
  transform: translateY(-1px) !important;
}

.bf-auth-primary-button:active,
.bf-auth-secondary-button:active,
.bf-auth-gate .registro-btn:active {
  transform: scale(0.985) !important;
}

.bf-auth-primary-button:disabled,
.bf-auth-gate .registro-btn:disabled {
  opacity: 0.58 !important;
  cursor: wait !important;
  transform: none !important;
}

.bf-auth-primary-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bf-auth-secondary-button,
.bf-auth-gate .registro-btn.secondary {
  border-color: var(--bf-auth-line) !important;
  background: #fff !important;
  color: #343438 !important;
  box-shadow: none !important;
}

.bf-auth-panel-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
  color: #74747b;
  font-size: 0.79rem;
  font-weight: 550;
  text-align: center;
}

.bf-auth-panel-switch--top {
  margin: 0 0 18px;
}

.bf-auth-panel-switch button {
  font-size: inherit !important;
}

.bf-auth-gate .form-message {
  display: block;
  margin: 0 !important;
  padding: 11px 13px !important;
  border: 1px solid rgba(32, 32, 36, 0.08) !important;
  border-radius: 13px !important;
  background: #f5f5f7 !important;
  color: #45454a !important;
  font-size: 0.77rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.bf-auth-gate .form-message.error {
  border-color: rgba(208, 34, 75, 0.18) !important;
  background: #fff0f4 !important;
  color: #a6133a !important;
}

.bf-auth-gate .form-message.success {
  border-color: rgba(21, 128, 61, 0.16) !important;
  background: #effaf3 !important;
  color: #166534 !important;
}

/* Registro */
.bf-auth-gate .registro,
.bf-auth-gate .registro-card,
.bf-auth-gate #registroForm {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bf-auth-gate .registro-progress {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
}

.bf-auth-gate .registro-progress span {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 0 !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid var(--bf-auth-line) !important;
  border-radius: 14px !important;
  background: #f7f7f9 !important;
  color: #8a8a91 !important;
  box-shadow: none !important;
}

.bf-auth-gate .registro-progress span b {
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #e7e7ea !important;
  color: #6f6f76 !important;
  font-size: 0.73rem !important;
  font-weight: 800 !important;
}

.bf-auth-gate .registro-progress span small {
  margin: 0 !important;
  color: inherit !important;
  font-size: 0.67rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.bf-auth-gate .registro-progress span.active {
  border-color: rgba(255, 0, 79, 0.22) !important;
  background: var(--bf-auth-accent-soft) !important;
  color: var(--bf-auth-accent) !important;
}

.bf-auth-gate .registro-progress span.active b,
.bf-auth-gate .registro-progress span.is-complete b {
  background: var(--bf-auth-accent) !important;
  color: #fff !important;
}

.bf-auth-gate .registro-progress span.is-complete {
  color: #4d4d52 !important;
}

.bf-auth-gate .registro-step {
  display: none !important;
  width: 100% !important;
}

.bf-auth-gate .registro-step.active {
  display: block !important;
  animation: bf-auth-panel-in 180ms ease both;
}

.bf-auth-gate .registro-title {
  margin: 0 !important;
  color: var(--bf-auth-ink) !important;
  font-size: 1.13rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.bf-auth-gate .registro-sub {
  max-width: 590px;
  margin: 5px auto 18px !important;
  color: var(--bf-auth-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

.bf-auth-gate .bf-register-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 14px !important;
  margin: 0 !important;
}

.bf-auth-gate .bf-register-demographics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  grid-column: 1 / -1;
}

.bf-auth-gate .bf-auth-field--birthdate,
.bf-auth-gate .bf-auth-field--gender {
  align-self: start;
}

.bf-auth-gate .bf-auth-date-help.is-valid,
.bf-auth-gate .bf-auth-field.is-valid .bf-auth-date-help {
  color: #15803d !important;
}

.bf-auth-gate .bf-auth-field.is-invalid .bf-auth-control {
  border-color: rgba(208, 34, 75, 0.52) !important;
  box-shadow: 0 0 0 4px rgba(208, 34, 75, 0.08) !important;
}

.bf-auth-gate .bf-auth-field.is-invalid .bf-auth-date-help {
  color: #b42348 !important;
}

.bf-auth-gate .bf-auth-privacy-note {
  margin: 14px 0 0 !important;
  color: #85858c !important;
  font-size: 0.69rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.bf-auth-gate .registro-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 18px 0 0 !important;
}

.bf-auth-gate .registro-actions > span:empty {
  display: none !important;
}

.bf-auth-gate .registro-actions .registro-btn {
  width: auto !important;
  min-width: 142px !important;
}

.bf-auth-gate .registro-actions .registro-btn.secondary {
  min-width: 112px !important;
}

.bf-auth-gate .registro-location-stack {
  gap: 10px !important;
}

.bf-auth-gate .registro-location-button {
  width: 100% !important;
  min-height: 49px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(255, 0, 79, 0.2) !important;
  border-radius: 14px !important;
  background: var(--bf-auth-accent-soft) !important;
  color: var(--bf-auth-accent) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: transform 150ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease !important;
  -webkit-tap-highlight-color: transparent;
}

.bf-auth-gate .registro-location-button:hover {
  background: rgba(255, 0, 79, 0.1) !important;
}

.bf-auth-gate .registro-location-button:active {
  transform: scale(0.985) !important;
}

.bf-auth-gate .registro-location-button:disabled {
  cursor: wait !important;
  opacity: 0.68 !important;
}

.bf-auth-gate .registro-location-button svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  fill: currentColor !important;
}

.bf-auth-gate .registro-location-button.is-success {
  border-color: rgba(21, 128, 61, 0.2) !important;
  background: #effaf3 !important;
  color: #15803d !important;
}

.bf-auth-gate .registro-location-button.is-error {
  border-color: rgba(208, 34, 75, 0.2) !important;
  background: #fff0f4 !important;
  color: #a6133a !important;
}

.bf-auth-gate .registro-location-status {
  min-height: 32px !important;
  margin: 0 !important;
  color: #7a7a81 !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

.bf-auth-gate .registro-location-status.is-success {
  color: #15803d !important;
}

.bf-auth-gate .registro-location-status.is-error {
  color: #a6133a !important;
}

.bf-auth-gate .registro-location-status.is-loading {
  color: #56565c !important;
}

.bf-auth-gate #ubicacion.is-verified {
  color: #166534 !important;
  -webkit-text-fill-color: #166534 !important;
}

.bf-auth-gate .bf-auth-control:has(#ubicacion.is-verified) {
  border-color: rgba(21, 128, 61, 0.26) !important;
  background: #f4fbf6 !important;
}

.bf-auth-gate .bf-auth-step-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 0, 79, 0.12);
  border-radius: 15px;
  background: var(--bf-auth-accent-soft);
  color: #54545a;
}

.bf-auth-gate .bf-auth-step-note > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--bf-auth-accent);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 900;
}

.bf-auth-gate .bf-auth-step-note p {
  margin: 1px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

.bf-auth-gate .registro-resend {
  margin-top: 16px !important;
  text-align: center !important;
}

.bf-auth-gate .registro-resend-btn:disabled {
  color: #96969c !important;
  cursor: default !important;
}

.bf-auth-gate .registro-resend-hint,
.bf-auth-gate .registro-hint,
.bf-auth-gate .rp-hint {
  margin: 7px auto 0 !important;
  color: #85858c !important;
  font-size: 0.7rem !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.bf-auth-gate .registro-avatar {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 13px !important;
  max-width: 520px !important;
  margin: 0 auto !important;
}

.bf-auth-gate .registro-avatar > img {
  width: 104px !important;
  height: 104px !important;
  border: 4px solid #fff !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 12px 30px rgba(20, 20, 24, 0.15) !important;
}

.bf-auth-gate #avatarInput {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

.bf-auth-gate .bf-auth-field--bio {
  width: 100% !important;
}

/* Recuperación */
.bf-auth-gate .sheet-steps {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0 0 18px;
}

.bf-auth-gate .sheet-steps span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #dedee2;
  transition: width 180ms ease, background-color 180ms ease;
}

.bf-auth-gate .sheet-steps span.active {
  width: 24px;
  background: var(--bf-auth-accent);
}

.bf-auth-gate .rp-step {
  display: none;
}

.bf-auth-gate .rp-step.active {
  display: block;
}

/* Modal de aviso del registro */
.bf-auth-gate .glass-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: rgba(18, 18, 21, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bf-auth-gate .glass-modal-overlay.open {
  display: block;
}

.bf-auth-gate .glass-modal {
  position: fixed;
  z-index: 21;
  top: 50%;
  left: 50%;
  display: none;
  width: min(360px, calc(100vw - 38px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(20, 20, 24, 0.22);
  transform: translate(-50%, -50%);
  text-align: center;
}

.bf-auth-gate .glass-modal.open {
  display: block;
}

.bf-auth-gate .glass-modal h3 {
  margin: 0 0 7px;
  color: var(--bf-auth-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.bf-auth-gate .glass-modal p {
  margin: 0 0 16px;
  color: var(--bf-auth-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Móvil: hoja nativa iOS desde abajo y altura de contenido */
@media (max-width: 760px) {
  .bf-auth-gate {
    align-items: flex-end !important;
    justify-content: stretch !important;
    padding: 0 !important;
  }

  .bf-auth-gate-backdrop {
    background: rgba(18, 18, 21, calc(0.38 * var(--bf-auth-drag-opacity))) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
  }

  .bf-auth-gate-card,
  .bf-auth-gate.is-login-view .bf-auth-gate-card,
  .bf-auth-gate.is-register-view .bf-auth-gate-card,
  .bf-auth-gate.is-reset-view .bf-auth-gate-card {
    width: 100% !important;
    max-width: none !important;
    max-height: calc(var(--bf-auth-viewport-height) - 8px) !important;
    margin: 0 !important;
    border-width: 1px 0 0 !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: 0 -16px 52px rgba(18, 18, 22, 0.2) !important;
    transform: translateY(calc(100% + 18px)) !important;
    opacity: 1;
    padding-bottom: env(safe-area-inset-bottom) !important;
    transition: transform 320ms cubic-bezier(.22, .8, .22, 1) !important;
  }

  .bf-auth-gate.is-open .bf-auth-gate-card {
    transform: translateY(var(--bf-auth-drag-y, 0px)) !important;
  }

  .bf-auth-gate-handle {
    display: block;
    width: 40px;
    height: 5px;
    flex: 0 0 auto;
    margin: 9px auto 0;
    border-radius: 99px;
    background: #d4d4d8;
    touch-action: none;
  }

  .bf-auth-gate-header {
    min-height: 71px !important;
    padding: 12px 58px 10px 20px !important;
    justify-content: flex-start !important;
  }

  .bf-auth-gate-heading {
    justify-content: flex-start;
    gap: 9px;
  }

  .bf-auth-gate-logo {
    width: 29px !important;
    height: 29px !important;
    flex-basis: 29px;
  }

  .bf-auth-gate-heading h2 {
    font-size: 1.28rem !important;
    white-space: nowrap;
  }

  .bf-auth-gate-heading p {
    max-width: 245px;
    margin-top: 3px !important;
    overflow: hidden;
    font-size: 0.72rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bf-auth-gate-close {
    top: 17px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .bf-auth-gate-content {
    padding: 3px 18px 18px !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-content,
  .bf-auth-gate.is-reset-view .bf-auth-gate-content {
    overflow-y: visible !important;
  }

  .bf-native-auth-form,
  .bf-auth-gate .registro-stack {
    gap: 12px;
  }

  .bf-auth-gate .bf-auth-control {
    min-height: 49px !important;
    border-radius: 14px !important;
  }

  .bf-auth-gate .bf-auth-control input,
  .bf-auth-gate .bf-auth-control select {
    min-height: 47px !important;
    font-size: 16px !important;
  }

  .bf-auth-primary-button,
  .bf-auth-secondary-button,
  .bf-auth-gate .registro-btn {
    min-height: 49px !important;
  }

  .bf-auth-panel-switch {
    margin-top: 14px;
    padding-bottom: 2px;
  }

  .bf-auth-gate .registro-progress {
    gap: 6px !important;
    margin-bottom: 18px !important;
  }

  .bf-auth-gate .registro-progress span {
    min-height: 46px !important;
    padding: 5px 2px !important;
    border-radius: 12px !important;
  }

  .bf-auth-gate .registro-progress span b {
    width: 21px !important;
    height: 21px !important;
    font-size: 0.66rem !important;
  }

  .bf-auth-gate .registro-progress span small {
    font-size: 0.59rem !important;
  }

  .bf-auth-gate .bf-register-grid,
  .bf-auth-gate .bf-register-demographics {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .bf-auth-gate .registro-title {
    font-size: 1.06rem !important;
  }

  .bf-auth-gate .registro-sub {
    margin-bottom: 15px !important;
  }

  .bf-auth-gate .registro-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 16px !important;
  }

  .bf-auth-gate .registro-actions .registro-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  .bf-auth-gate .registro-actions .registro-btn:only-child,
  .bf-auth-gate .registro-actions > span + .registro-btn:last-child {
    grid-column: 1 / -1;
  }

  .bf-auth-gate .registro-avatar > img {
    width: 92px !important;
    height: 92px !important;
  }
}

@media (max-width: 390px) {
  .bf-auth-gate-header {
    padding-left: 16px !important;
  }

  .bf-auth-gate-heading p {
    max-width: 210px;
  }

  .bf-auth-gate-content {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-auth-gate,
  .bf-auth-gate *,
  .bf-auth-gate *::before,
  .bf-auth-gate *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Página directa de acceso */
html:has(body.bf-auth-standalone),
body.bf-auth-standalone {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #f5f5f7;
}

body.bf-auth-standalone {
  overflow: hidden;
}

.bf-auth-standalone-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 0, 79, 0.08), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(255, 173, 38, 0.1), transparent 36%),
    linear-gradient(180deg, #fbfbfc 0%, #f3f3f5 100%);
}

.bf-auth-standalone-brand {
  position: absolute;
  top: 24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #18181b;
  text-decoration: none;
  font: 800 1.05rem/1 Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  letter-spacing: -0.035em;
}

.bf-auth-standalone-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.bf-auth-standalone-glow {
  position: absolute;
  left: 50%;
  bottom: -260px;
  width: min(760px, 90vw);
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(50px);
  transform: translateX(-50%);
}

@media (max-width: 760px) {
  .bf-auth-standalone-brand {
    top: max(16px, env(safe-area-inset-top));
    left: 18px;
  }

  .bf-auth-standalone-brand img {
    width: 27px;
    height: 27px;
  }
}

/* =========================================================
   AJUSTE REAL iPHONE · MODAL COMPACTO Y CONTROLES LIMPIOS
   Mantiene la lógica; corrige la altura impuesta por premium-ui.
========================================================= */

/* El componente nativo siempre manda sobre los antiguos tamaños fijos. */
body.bf-web-page .bf-auth-gate .bf-auth-gate-card,
body.bf-auth-standalone .bf-auth-gate .bf-auth-gate-card {
  width: min(480px, calc(100vw - 44px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 480px !important;
  max-height: calc(var(--bf-auth-viewport-height) - 44px) !important;
  flex: 0 0 auto !important;
}

body.bf-web-page .bf-auth-gate.is-register-view .bf-auth-gate-card,
body.bf-auth-standalone .bf-auth-gate.is-register-view .bf-auth-gate-card {
  width: min(900px, calc(100vw - 44px)) !important;
  max-width: 900px !important;
}

.bf-auth-gate .bf-auth-gate-header {
  justify-content: flex-start !important;
  border-color: #ffffff !important;
  background: #ffffff !important;
}

.bf-auth-gate .bf-auth-gate-heading {
  width: 100% !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.bf-auth-gate .bf-auth-gate-logo {
  width: 27px !important;
  height: 27px !important;
  flex: 0 0 27px !important;
  margin-top: 0 !important;
}

/* Mostrar queda centrado exactamente dentro del campo. */
.bf-auth-gate .bf-auth-password-toggle {
  top: 0 !important;
  right: 8px !important;
  bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 9px !important;
  transform: none !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  line-height: 1 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Enlaces de texto: sin pastillas, fondos, subrayados ni capas globales. */
.bf-auth-gate :is(.bf-auth-text-button, .bf-auth-panel-switch button, .registro-resend-btn) {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.bf-auth-gate :is(.bf-auth-text-button, .bf-auth-panel-switch button, .registro-resend-btn)::before,
.bf-auth-gate :is(.bf-auth-text-button, .bf-auth-panel-switch button, .registro-resend-btn)::after,
.bf-auth-gate .bf-liquid-sheen,
.bf-auth-gate .bf-liquid-ripple {
  display: none !important;
  content: none !important;
}

@media (max-width: 760px) {
  body.bf-web-page .bf-auth-gate .bf-auth-gate-card,
  body.bf-auth-standalone .bf-auth-gate .bf-auth-gate-card,
  body.bf-web-page .bf-auth-gate.is-login-view .bf-auth-gate-card,
  body.bf-web-page .bf-auth-gate.is-register-view .bf-auth-gate-card,
  body.bf-web-page .bf-auth-gate.is-reset-view .bf-auth-gate-card {
    align-self: flex-end !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: calc(var(--bf-auth-viewport-height) - 14px) !important;
    flex: 0 0 auto !important;
    border-width: 1px 0 0 !important;
    border-radius: 28px 28px 0 0 !important;
  }

  .bf-auth-gate .bf-auth-gate-header {
    min-height: 66px !important;
    padding: 10px 56px 9px 20px !important;
    justify-content: flex-start !important;
    border-top-color: #ffffff !important;
    background: #ffffff !important;
  }

  .bf-auth-gate .bf-auth-gate-heading {
    width: 100% !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
  }

  .bf-auth-gate .bf-auth-gate-logo {
    width: 25px !important;
    height: 25px !important;
    flex-basis: 25px !important;
    margin-top: 0 !important;
  }

  .bf-auth-gate .bf-auth-gate-heading h2 {
    font-size: 1.18rem !important;
    line-height: 1.08 !important;
    white-space: nowrap !important;
  }

  .bf-auth-gate .bf-auth-gate-heading p {
    max-width: 260px !important;
    margin-top: 3px !important;
    overflow: visible !important;
    font-size: 0.7rem !important;
    line-height: 1.25 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .bf-auth-gate .bf-auth-gate-close {
    top: 17px !important;
    right: 15px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  .bf-auth-gate .bf-auth-gate-content {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    padding: 2px 18px calc(18px + env(safe-area-inset-bottom)) !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-content,
  .bf-auth-gate.is-reset-view .bf-auth-gate-content {
    overflow-y: visible !important;
  }

  .bf-auth-gate .bf-auth-panel-switch {
    padding-bottom: 0 !important;
  }
}

/* iPhone: al abrir el teclado la hoja ocupa el viewport visual completo.
   Evita que Safari desplace la página y deje ver el contenido de fondo. */
@media (max-width: 760px) {
  .bf-auth-gate.is-keyboard-open {
    align-items: stretch !important;
    background: #ffffff !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-backdrop {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.bf-web-page .bf-auth-gate.is-keyboard-open .bf-auth-gate-card,
  body.bf-auth-standalone .bf-auth-gate.is-keyboard-open .bf-auth-gate-card,
  .bf-auth-gate.is-keyboard-open .bf-auth-gate-card {
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    transform: none !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-handle {
    display: none !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-header {
    position: relative !important;
    z-index: 3 !important;
    flex: 0 0 auto !important;
    padding-top: max(10px, env(safe-area-inset-top)) !important;
    border: 0 !important;
    background: #ffffff !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 18px !important;
    background: #ffffff !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-close {
    top: max(13px, env(safe-area-inset-top)) !important;
  }
}

@media (max-width: 390px) {
  .bf-auth-gate .bf-auth-gate-header {
    padding-right: 52px !important;
    padding-left: 16px !important;
  }

  .bf-auth-gate .bf-auth-gate-heading p {
    max-width: 238px !important;
  }

  .bf-auth-gate .bf-auth-gate-content {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
}


/* =========================================================
   AUTH PRODUCCIÓN · CABECERA UNIFICADA + RECUPERACIÓN SES
   Login, registro y recuperación comparten exactamente el
   mismo lenguaje visual y los mismos estados de interacción.
========================================================= */

.bf-auth-gate .bf-auth-gate-header,
.bf-auth-gate.is-login-view .bf-auth-gate-header,
.bf-auth-gate.is-register-view .bf-auth-gate-header,
.bf-auth-gate.is-reset-view .bf-auth-gate-header {
  min-height: 94px !important;
  padding: 20px 66px 17px 22px !important;
  border: 0 !important;
  background: #ffffff !important;
}

.bf-auth-gate .bf-auth-gate-heading {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-align: left !important;
}

.bf-auth-gate .bf-auth-gate-logo-shell {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  border: 1px solid rgba(255, 0, 79, 0.10) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #fff8fa 0%, #fff0f5 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.bf-auth-gate .bf-auth-gate-logo-shell .bf-auth-gate-logo {
  display: block !important;
  width: 27px !important;
  height: 27px !important;
  min-width: 0 !important;
  flex: none !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.bf-auth-gate .bf-auth-gate-copy {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.bf-auth-gate .bf-auth-gate-copy h2 {
  margin: 0 !important;
  color: var(--bf-auth-ink) !important;
  font-size: 1.42rem !important;
  font-weight: 820 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.05 !important;
}

.bf-auth-gate .bf-auth-gate-copy p {
  max-width: 560px !important;
  margin: 5px 0 0 !important;
  color: var(--bf-auth-muted) !important;
  font-size: 0.79rem !important;
  font-weight: 520 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.bf-auth-gate .rp-destination {
  margin: 0 !important;
  padding: 11px 13px !important;
  border: 1px solid rgba(255, 0, 79, 0.12) !important;
  border-radius: 13px !important;
  background: var(--bf-auth-accent-soft) !important;
  color: #9d1640 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.bf-auth-gate .rp-inline-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

.bf-auth-gate .rp-inline-actions .bf-auth-secondary-button {
  min-width: 0 !important;
  padding-inline: 12px !important;
}

.bf-auth-gate #rpResendBtn:disabled {
  color: #8d8d93 !important;
  opacity: 0.72 !important;
  cursor: default !important;
}

.bf-auth-gate #rpResendCountdown:empty {
  display: none !important;
}

.bf-auth-gate .rp-step.active {
  animation: bf-auth-panel-in 180ms ease both;
}

@media (max-width: 760px) {
  .bf-auth-gate .bf-auth-gate-header,
  .bf-auth-gate.is-login-view .bf-auth-gate-header,
  .bf-auth-gate.is-register-view .bf-auth-gate-header,
  .bf-auth-gate.is-reset-view .bf-auth-gate-header {
    min-height: 76px !important;
    padding: 11px 56px 10px 17px !important;
  }

  .bf-auth-gate .bf-auth-gate-heading {
    align-items: center !important;
    gap: 10px !important;
  }

  .bf-auth-gate .bf-auth-gate-logo-shell {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-basis: 38px !important;
    border-radius: 13px !important;
  }

  .bf-auth-gate .bf-auth-gate-logo-shell .bf-auth-gate-logo {
    width: 24px !important;
    height: 24px !important;
  }

  .bf-auth-gate .bf-auth-gate-copy h2 {
    font-size: 1.22rem !important;
    line-height: 1.06 !important;
    white-space: nowrap !important;
  }

  .bf-auth-gate .bf-auth-gate-copy p {
    max-width: 255px !important;
    margin-top: 3px !important;
    overflow: visible !important;
    font-size: 0.69rem !important;
    line-height: 1.3 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .bf-auth-gate .rp-inline-actions {
    gap: 8px !important;
  }

  .bf-auth-gate .rp-inline-actions .bf-auth-secondary-button {
    min-height: 47px !important;
    font-size: 0.76rem !important;
  }
}

@media (max-width: 365px) {
  .bf-auth-gate .bf-auth-gate-copy h2 {
    font-size: 1.12rem !important;
  }

  .bf-auth-gate .bf-auth-gate-copy p {
    max-width: 220px !important;
    font-size: 0.66rem !important;
  }
}

/* =========================================================
   iOS · TECLADO SÓLIDO PARA LOGIN, REGISTRO Y RECUPERACIÓN
   El fondo blanco cubre el layout viewport completo y la tarjeta
   sigue únicamente el visualViewport situado encima del teclado.
========================================================= */
html.bf-auth-keyboard-open,
body.bf-auth-keyboard-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  background: #ffffff !important;
}

@media (max-width: 760px) {
  .bf-auth-gate.is-keyboard-open {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 0 !important;
    overflow: hidden !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    background: #ffffff !important;
    touch-action: none !important;
    contain: strict !important;
  }

  @supports (height: 100lvh) {
    .bf-auth-gate.is-keyboard-open {
      height: 100lvh !important;
      min-height: 100lvh !important;
    }
  }

  /* Escudo independiente de la tarjeta. Aunque Safari desplace el
     visual viewport durante la animación, nunca queda visible la web. */
  .bf-auth-gate.is-keyboard-open::before {
    content: "" !important;
    position: fixed !important;
    z-index: 0 !important;
    inset: -4px !important;
    display: block !important;
    width: calc(100vw + 8px) !important;
    height: calc(100vh + 8px) !important;
    background: #ffffff !important;
    pointer-events: none !important;
  }

  @supports (height: 100lvh) {
    .bf-auth-gate.is-keyboard-open::before {
      height: calc(100lvh + 8px) !important;
    }
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-backdrop {
    position: fixed !important;
    z-index: 1 !important;
    inset: -4px !important;
    width: calc(100vw + 8px) !important;
    height: calc(100vh + 8px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
  }

  @supports (height: 100lvh) {
    .bf-auth-gate.is-keyboard-open .bf-auth-gate-backdrop {
      height: calc(100lvh + 8px) !important;
    }
  }

  body.bf-web-page .bf-auth-gate.is-keyboard-open .bf-auth-gate-card,
  body.bf-auth-standalone .bf-auth-gate.is-keyboard-open .bf-auth-gate-card,
  .bf-auth-gate.is-keyboard-open .bf-auth-gate-card {
    position: fixed !important;
    z-index: 2 !important;
    top: var(--bf-auth-viewport-top) !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--bf-auth-viewport-left) !important;
    align-self: auto !important;
    width: var(--bf-auth-viewport-width) !important;
    min-width: var(--bf-auth-viewport-width) !important;
    max-width: var(--bf-auth-viewport-width) !important;
    height: var(--bf-auth-viewport-height) !important;
    min-height: var(--bf-auth-viewport-height) !important;
    max-height: var(--bf-auth-viewport-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    contain: layout paint !important;
    touch-action: none !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-header {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    border: 0 !important;
    background: #ffffff !important;
    touch-action: none !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    background: #ffffff !important;
    touch-action: pan-y !important;
  }

  .bf-auth-gate.is-keyboard-open :is(input, textarea, select, button) {
    touch-action: manipulation !important;
  }
}

/* ======================================================
   REGISTRO · UBICACIÓN RESILIENTE
====================================================== */
.bf-auth-gate .registro-location-meta {
  display: grid !important;
  gap: 3px !important;
  padding: 9px 11px !important;
  border: 1px solid #ededf0 !important;
  border-radius: 12px !important;
  background: #fafafd !important;
}

.bf-auth-gate .registro-location-browser,
.bf-auth-gate .registro-location-attempts {
  margin: 0 !important;
  color: #85858c !important;
  font-size: 0.66rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.bf-auth-gate .registro-location-browser strong {
  color: #47474d !important;
  font-weight: 850 !important;
}

.bf-auth-gate .registro-location-fallback[hidden],
.bf-auth-gate .registro-location-results[hidden] {
  display: none !important;
}

.bf-auth-gate .registro-location-fallback {
  position: relative !important;
  display: grid !important;
  gap: 13px !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 0, 79, 0.13) !important;
  border-radius: 17px !important;
  background: linear-gradient(145deg, #fffafd 0%, #fff 62%) !important;
  box-shadow: 0 12px 32px rgba(85, 23, 48, 0.06) !important;
  animation: bfAuthLocationFallbackIn 220ms ease both !important;
}

@keyframes bfAuthLocationFallbackIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.bf-auth-gate .registro-location-fallback-head {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.bf-auth-gate .registro-location-fallback-icon {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 11px !important;
  background: var(--bf-auth-accent-soft) !important;
  color: var(--bf-auth-accent) !important;
}

.bf-auth-gate .registro-location-fallback-icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
}

.bf-auth-gate .registro-location-fallback-head strong {
  display: block !important;
  color: #222227 !important;
  font-size: 0.79rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

.bf-auth-gate .registro-location-fallback-head p {
  margin: 3px 0 0 !important;
  color: #77777e !important;
  font-size: 0.67rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.bf-auth-gate .registro-location-manual {
  position: relative !important;
  display: grid !important;
  gap: 6px !important;
}

.bf-auth-gate .registro-location-manual > label {
  color: #4d4d54 !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
}

.bf-auth-gate .registro-location-manual-control {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.bf-auth-gate .registro-location-manual-control > svg {
  position: absolute !important;
  left: 13px !important;
  z-index: 2 !important;
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: #96969d !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  pointer-events: none !important;
}

.bf-auth-gate .registro-location-manual-control input {
  width: 100% !important;
  min-height: 46px !important;
  padding: 0 13px 0 40px !important;
  border: 1px solid #e5e5e9 !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: #242429 !important;
  -webkit-text-fill-color: #242429 !important;
  font-size: 0.76rem !important;
  box-shadow: none !important;
}

.bf-auth-gate .registro-location-manual-control input:focus {
  border-color: rgba(255, 0, 79, 0.34) !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 79, 0.07) !important;
  outline: none !important;
}

.bf-auth-gate .registro-location-results {
  position: absolute !important;
  z-index: 80 !important;
  top: calc(100% - 27px) !important;
  left: 0 !important;
  right: 0 !important;
  max-height: 206px !important;
  overflow-y: auto !important;
  padding: 5px !important;
  border: 1px solid #e2e2e7 !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 18px 42px rgba(24, 24, 30, 0.15) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.bf-auth-gate .registro-location-result {
  width: 100% !important;
  display: grid !important;
  gap: 2px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #242429 !important;
  text-align: left !important;
  cursor: pointer !important;
}

.bf-auth-gate .registro-location-result:hover,
.bf-auth-gate .registro-location-result.is-active {
  background: var(--bf-auth-accent-soft) !important;
}

.bf-auth-gate .registro-location-result strong {
  color: #242429 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
}

.bf-auth-gate .registro-location-result span {
  overflow: hidden !important;
  color: #888890 !important;
  font-size: 0.62rem !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.bf-auth-gate .registro-location-manual-status,
.bf-auth-gate .registro-location-later-note {
  margin: 0 !important;
  color: #888890 !important;
  font-size: 0.63rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.bf-auth-gate .registro-location-fallback-actions {
  display: grid !important;
  gap: 7px !important;
}

.bf-auth-gate .registro-location-manual-save,
.bf-auth-gate .registro-location-skip {
  width: 100% !important;
  min-height: 44px !important;
  padding: 0 13px !important;
  border-radius: 13px !important;
  font-size: 0.7rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: transform 150ms ease, opacity 180ms ease, background-color 180ms ease !important;
}

.bf-auth-gate .registro-location-manual-save {
  border: 1px solid var(--bf-auth-accent) !important;
  background: var(--bf-auth-accent) !important;
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(255, 0, 79, 0.14) !important;
}

.bf-auth-gate .registro-location-skip {
  border: 1px solid #e8e8ec !important;
  background: #f7f7f9 !important;
  color: #626269 !important;
}

.bf-auth-gate .registro-location-manual-save:not(:disabled):active,
.bf-auth-gate .registro-location-skip:not(:disabled):active {
  transform: scale(0.985) !important;
}

.bf-auth-gate .registro-location-manual-save:disabled,
.bf-auth-gate .registro-location-skip:disabled {
  cursor: wait !important;
  opacity: 0.55 !important;
}

.bf-auth-gate #ubicacion.is-pending {
  color: #9a5a19 !important;
  -webkit-text-fill-color: #9a5a19 !important;
}

.bf-auth-gate .bf-auth-control:has(#ubicacion.is-pending) {
  border-color: rgba(197, 120, 24, 0.2) !important;
  background: #fffaf2 !important;
}

@media (max-width: 640px) {
  .bf-auth-gate .registro-location-fallback {
    padding: 12px !important;
    border-radius: 15px !important;
  }

  .bf-auth-gate .registro-location-results {
    max-height: 184px !important;
  }
}

/* ======================================================
   RECORDATORIO DE LOCALIDAD PENDIENTE
====================================================== */
.bf-location-reminder[hidden] {
  display: none !important;
}

.bf-location-reminder {
  position: fixed;
  z-index: 1800;
  right: 24px;
  bottom: 24px;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 0, 79, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 65px rgba(34, 20, 27, 0.2);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  pointer-events: none;
  transition: opacity 220ms ease, transform 240ms cubic-bezier(.22, .8, .22, 1);
}

.bf-location-reminder.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.bf-location-reminder.is-complete {
  border-color: rgba(21, 128, 61, 0.2);
}

.bf-location-reminder__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bf-auth-accent-soft, #fff0f5);
  color: var(--bf-auth-accent, #ff004f);
}

.bf-location-reminder__icon svg,
.bf-location-reminder__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bf-location-reminder__body {
  min-width: 0;
}

.bf-location-reminder__copy > span {
  display: block;
  margin-bottom: 3px;
  color: var(--bf-auth-accent, #ff004f);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bf-location-reminder__copy > strong {
  display: block;
  color: #222227;
  font-size: 1rem;
  font-weight: 880;
  line-height: 1.2;
}

.bf-location-reminder__copy > p {
  margin: 6px 0 0;
  color: #6f6f76;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
}

.bf-location-reminder__copy > small {
  display: block;
  margin-top: 7px;
  color: #96969d;
  font-size: 0.64rem;
  font-weight: 650;
}

.bf-location-reminder__copy > small b {
  color: #56565d;
  font-weight: 850;
}

.bf-location-reminder__status {
  min-height: 0;
  margin-top: 8px;
  color: #696970;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
}

.bf-location-reminder__status:empty {
  display: none;
}

.bf-location-reminder__status.is-error {
  color: #a6133a;
}

.bf-location-reminder__status.is-success {
  color: #15803d;
}

.bf-location-reminder__status.is-loading {
  color: #5b5b62;
}

.bf-location-reminder__manual[hidden] {
  display: none !important;
}

.bf-location-reminder__manual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}

.bf-location-reminder__manual label {
  display: grid;
  gap: 5px;
  color: #55555c;
  font-size: 0.66rem;
  font-weight: 800;
}

.bf-location-reminder__manual input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e2e2e7;
  border-radius: 12px;
  background: #fff;
  color: #242429;
  font: inherit;
  outline: none;
}

.bf-location-reminder__manual input:focus {
  border-color: rgba(255, 0, 79, 0.34);
  box-shadow: 0 0 0 3px rgba(255, 0, 79, 0.07);
}

.bf-location-reminder__manual button,
.bf-location-reminder__actions button {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 0.69rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, opacity 180ms ease, background-color 180ms ease;
}

.bf-location-reminder__manual button {
  border: 1px solid var(--bf-auth-accent, #ff004f);
  background: var(--bf-auth-accent, #ff004f);
  color: #fff;
}

.bf-location-reminder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.bf-location-reminder__actions button {
  border: 1px solid #e7e7eb;
  background: #f8f8fa;
  color: #5e5e65;
}

.bf-location-reminder__actions button.is-primary {
  border-color: var(--bf-auth-accent, #ff004f);
  background: var(--bf-auth-accent, #ff004f);
  color: #fff;
}

.bf-location-reminder__actions button.is-quiet {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  color: #8d8d94;
}

.bf-location-reminder button:not(:disabled):active {
  transform: scale(0.98);
}

.bf-location-reminder button:disabled,
.bf-location-reminder input:disabled {
  cursor: wait;
  opacity: 0.58;
}

.bf-location-reminder__close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #929299;
  cursor: pointer;
}

.bf-location-reminder__close:hover {
  background: #f3f3f5;
  color: #56565d;
}

@media (max-width: 700px) {
  .bf-location-reminder {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 24px);
    grid-template-columns: 40px minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  .bf-location-reminder__icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .bf-location-reminder__manual {
    grid-template-columns: 1fr;
  }

  .bf-location-reminder__manual button {
    width: 100%;
  }

  .bf-location-reminder__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bf-location-reminder__actions button.is-quiet {
    grid-column: 1 / -1;
    margin-left: 0;
  }
}

/* Perfil final del alta: feedback claro sin exponer datos técnicos de compresión. */
.bf-auth-gate .registro-avatar-status {
  width: 100% !important;
  margin: -4px 0 1px !important;
  color: #8a8a91 !important;
  font-size: .72rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}
.bf-auth-gate .registro-avatar-status.is-loading { color: #6f6f76 !important; }
.bf-auth-gate .registro-avatar-status.is-success { color: #168a55 !important; }
.bf-auth-gate .registro-avatar-status.is-error { color: #c83c3c !important; }

.bf-auth-gate .registro-bio-meta {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 6px !important;
  color: #8a8a91 !important;
  font-size: .7rem !important;
  line-height: 1.35 !important;
}
.bf-auth-gate .registro-bio-meta small:last-child {
  flex: 0 0 auto !important;
  color: #68686f !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 800 !important;
}
.bf-auth-gate #registerMessageStep4 {
  width: 100% !important;
  margin: 1px 0 0 !important;
}
.bf-auth-gate .registro-step[data-step="4"] .registro-btn[aria-busy="true"] {
  cursor: wait !important;
  opacity: .68 !important;
}

/* =========================================================
   LOGIN 2026 · DISEÑO POST-PLAN / PLANES
   Aislado a .is-login-view: registro y recuperación no cambian.
========================================================= */
.bf-auth-gate.is-login-view {
  --bf-auth-accent: #ff5b24;
  --bf-auth-accent-hover: #ef4d16;
  --bf-auth-accent-soft: #fff1e9;
  --bf-login-ink: #17171b;
  --bf-login-muted: #6f6f79;
  --bf-login-line: #e9e9ee;
  --bf-login-orange-2: #ff7a3d;
}

.bf-auth-gate.is-login-view .bf-auth-gate-backdrop {
  background: rgba(12, 12, 16, calc(.46 * var(--bf-auth-drag-opacity))) !important;
  -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
  backdrop-filter: blur(12px) saturate(120%) !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-card {
  width: min(690px, calc(100vw - 44px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(820px, calc(var(--bf-auth-viewport-height) - 44px)) !important;
  border: 1px solid rgba(255, 255, 255, .76) !important;
  border-radius: 30px !important;
  background: #fff !important;
  box-shadow: 0 28px 90px rgba(18, 18, 24, .14) !important;
  transform: translateY(18px) scale(.985) !important;
  transition:
    transform .24s cubic-bezier(.22, .8, .26, 1),
    opacity .2s ease !important;
}

.bf-auth-gate.is-login-view.is-open .bf-auth-gate-card {
  transform: none !important;
}

/* Cabecera replicada del modal post-plan.php. */
.bf-auth-gate.is-login-view .bf-auth-gate-handle {
  display: none !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-header {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  gap: 16px !important;
  padding: 22px 76px 18px 24px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--bf-login-line) !important;
  background: linear-gradient(135deg, #fff9f5 0%, #fff 58%, #fff6fa 100%) !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-heading {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  text-align: left !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-logo-shell {
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  flex: 0 0 48px !important;
  place-items: center !important;
  margin: 0 !important;
  border: 1px solid rgba(232, 232, 236, .9) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(20, 20, 25, .08) !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-logo-shell .bf-auth-gate-logo {
  width: 36px !important;
  height: 36px !important;
  min-width: 0 !important;
  flex: none !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-copy {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  padding-top: 1px !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-copy::before {
  display: block;
  margin: 0 0 4px;
  color: #91919a;
  content: "BANANA FRIENDS";
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bf-auth-gate.is-login-view .bf-auth-gate-copy h2 {
  margin: 0 !important;
  color: var(--bf-login-ink) !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  letter-spacing: -.035em !important;
  line-height: 1.16 !important;
  white-space: normal !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-copy p {
  max-width: 470px !important;
  margin: 5px 0 0 !important;
  color: var(--bf-login-muted) !important;
  font-size: 13px !important;
  font-weight: 520 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-close {
  position: absolute !important;
  top: 22px !important;
  right: 24px !important;
  display: grid !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--bf-login-line) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #55555d !important;
  box-shadow: 0 5px 16px rgba(20, 20, 25, .04) !important;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-close:hover {
  background: #f8f8fa !important;
  box-shadow: 0 7px 18px rgba(20, 20, 25, .07) !important;
  transform: translateY(-1px) !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-close:active {
  transform: scale(.94) !important;
}

.bf-auth-gate.is-login-view .bf-auth-gate-close svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2 !important;
}

/* Cuerpo limpio y compacto: sin capas decorativas innecesarias. */
.bf-auth-gate.is-login-view .bf-auth-gate-content {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 26px 24px 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #fff !important;
}

.bf-auth-gate.is-login-view #loginSheet {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-native-auth-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 17px !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-field {
  gap: 8px !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-field-label {
  margin: 0 0 0 2px !important;
  color: #3a3a40 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: -.01em !important;
  line-height: 1.2 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-field > small {
  min-height: 0 !important;
  margin: -1px 2px 0 !important;
  color: #8b8b93 !important;
  font-size: 11.5px !important;
  font-weight: 560 !important;
  line-height: 1.4 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-control {
  min-height: 56px !important;
  overflow: hidden !important;
  border: 1px solid #dedee4 !important;
  border-radius: 17px !important;
  background: #fbfbfc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-control:hover {
  border-color: #d3d3d9 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-control:focus-within {
  border-color: #ff9b70 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255, 91, 36, .09) !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-control input {
  min-height: 54px !important;
  padding-inline: 16px !important;
  color: var(--bf-login-ink) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-control input::placeholder {
  color: #9b9ba2 !important;
  font-weight: 520 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-control--phone .bf-auth-phone-prefix {
  min-width: 58px !important;
  border-right: 1px solid #e4e4e8 !important;
  background: linear-gradient(135deg, #fff8f4, #fff) !important;
  color: #5e4a42 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-control--phone input {
  padding-left: 15px !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-control--password input {
  padding-right: 92px !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-password-toggle {
  right: 9px !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 11px !important;
  border-radius: 11px !important;
  background: #f2f2f5 !important;
  color: #55555d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  transition: background-color .16s ease, color .16s ease !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-password-toggle:hover {
  background: #ebecef !important;
  color: #242428 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-form-meta {
  display: flex !important;
  justify-content: flex-end !important;
  margin: -4px 1px 0 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-text-button {
  padding: 4px 0 !important;
  color: #c94d17 !important;
  font-size: 12px !important;
  font-weight: 820 !important;
  text-decoration: none !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-text-button:hover {
  color: #9f3710 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-primary-button {
  min-height: 54px !important;
  margin-top: 1px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #ff5b24 0%, #ff7a3d 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(255, 91, 36, .20) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-primary-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #f4521c 0%, #ff7132 100%) !important;
  box-shadow: 0 13px 28px rgba(255, 91, 36, .25) !important;
  filter: none !important;
  transform: translateY(-1px) !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-primary-button:active:not(:disabled) {
  transform: scale(.985) !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-primary-button svg {
  width: 17px !important;
  height: 17px !important;
  transition: transform .18s ease !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-primary-button:hover:not(:disabled) svg {
  transform: translateX(2px) !important;
}

.bf-auth-gate.is-login-view #loginSheet .form-message,
.bf-auth-gate.is-login-view #loginSheet .login-message {
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

/* Alta sigue siendo el mismo flujo; solo presentamos su acceso como pie del login. */
.bf-auth-gate.is-login-view #loginSheet .bf-auth-panel-switch {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 19px 0 0 !important;
  padding: 13px 15px !important;
  border: 1px solid #ececf0 !important;
  border-radius: 15px !important;
  background: #f7f7f9 !important;
  color: #72727a !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-panel-switch button {
  padding: 2px 0 !important;
  color: #c94d17 !important;
  font-size: inherit !important;
  font-weight: 900 !important;
}

.bf-auth-gate.is-login-view #loginSheet .bf-auth-panel-switch button:hover {
  color: #9f3710 !important;
}

.bf-auth-gate.is-login-view :where(button, input):focus-visible {
  outline: 3px solid rgba(255, 91, 36, .18) !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  .bf-auth-gate.is-login-view {
    align-items: flex-end !important;
    justify-content: stretch !important;
    padding: max(14px, env(safe-area-inset-top)) 0 0 !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-card {
    align-self: flex-end !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(var(--bf-auth-viewport-height) - max(14px, env(safe-area-inset-top))) !important;
    margin: 0 !important;
    border-width: 1px 0 0 !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: 0 -16px 52px rgba(18, 18, 22, .20) !important;
    transform: translateY(calc(100% + 18px)) !important;
    opacity: 1 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    transition: transform .32s cubic-bezier(.22, .8, .22, 1) !important;
  }

  .bf-auth-gate.is-login-view.is-open .bf-auth-gate-card {
    transform: translateY(var(--bf-auth-drag-y, 0px)) !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-handle {
    display: block !important;
    width: 40px !important;
    height: 5px !important;
    flex: 0 0 auto !important;
    margin: 9px auto 0 !important;
    border-radius: 999px !important;
    background: rgba(60, 60, 67, .24) !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-header {
    gap: 12px !important;
    padding: 14px 58px 13px 17px !important;
    background: linear-gradient(135deg, #fff9f5 0%, #fff 60%, #fff7fa 100%) !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-heading {
    gap: 12px !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-logo-shell {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex-basis: 44px !important;
    border-radius: 14px !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-logo-shell .bf-auth-gate-logo {
    width: 33px !important;
    height: 33px !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-copy::before {
    margin-bottom: 3px !important;
    font-size: 9.5px !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-copy h2 {
    font-size: 18px !important;
    line-height: 1.14 !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-copy p {
    max-width: 260px !important;
    margin-top: 3px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-close {
    top: 17px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    box-shadow: none !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-content {
    flex: 0 1 auto !important;
    padding: 20px 17px calc(17px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
  }

  .bf-auth-gate.is-login-view #loginSheet {
    width: 100% !important;
    max-width: none !important;
  }

  .bf-auth-gate.is-login-view #loginSheet .bf-native-auth-form {
    gap: 15px !important;
  }

  .bf-auth-gate.is-login-view #loginSheet .bf-auth-control {
    min-height: 54px !important;
    border-radius: 16px !important;
  }

  .bf-auth-gate.is-login-view #loginSheet .bf-auth-control input {
    min-height: 52px !important;
    font-size: 16px !important; /* evita zoom automático en Safari iOS */
  }

  .bf-auth-gate.is-login-view #loginSheet .bf-auth-primary-button {
    min-height: 52px !important;
    border-radius: 15px !important;
  }

  .bf-auth-gate.is-login-view #loginSheet .bf-auth-panel-switch {
    margin-top: 17px !important;
    padding: 12px 13px !important;
  }
}

@media (max-width: 390px) {
  .bf-auth-gate.is-login-view .bf-auth-gate-header {
    padding-right: 54px !important;
    padding-left: 14px !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-heading {
    gap: 10px !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-logo-shell {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-logo-shell .bf-auth-gate-logo {
    width: 30px !important;
    height: 30px !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-copy p {
    max-width: 225px !important;
  }

  .bf-auth-gate.is-login-view .bf-auth-gate-content {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
}

/* Safari/iOS con teclado: conserva el comportamiento de pantalla completa
   para que el nuevo diseño no provoque saltos ni deje ver la página detrás. */
@media (max-width: 760px) {
  .bf-auth-gate.is-login-view.is-keyboard-open {
    align-items: stretch !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-backdrop {
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  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,
  .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-card {
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    transform: none !important;
  }

  .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-handle {
    display: none !important;
  }

  .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-header {
    position: relative !important;
    z-index: 3 !important;
    flex: 0 0 auto !important;
    padding-top: max(12px, env(safe-area-inset-top)) !important;
    border-top: 0 !important;
  }

  .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 18px !important;
    background: #fff !important;
  }

  .bf-auth-gate.is-login-view.is-keyboard-open .bf-auth-gate-close {
    top: max(17px, env(safe-area-inset-top)) !important;
  }
}

/* =========================================================
   AUTH 2026 · CREAR CUENTA + RECUPERAR ACCESO
   Familia visual Post-plan / Planes. Aislado por vista para
   no alterar el login ya aprobado ni la lógica de formularios.
========================================================= */
.bf-auth-gate:is(.is-register-view, .is-reset-view) {
  --bf-auth-accent: #ff5b24;
  --bf-auth-accent-hover: #f4511c;
  --bf-auth-accent-soft: #fff1e8;
  --bf-auth-line: #e9e9ed;
  --bf-auth-ink: #17171b;
  --bf-auth-muted: #6d6d76;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-backdrop {
  background: rgba(20, 20, 24, calc(.46 * var(--bf-auth-drag-opacity))) !important;
  -webkit-backdrop-filter: blur(18px) saturate(118%) !important;
  backdrop-filter: blur(18px) saturate(118%) !important;
}

.bf-auth-gate.is-register-view .bf-auth-gate-card {
  width: min(900px, calc(100vw - 44px)) !important;
  max-width: 900px !important;
  border: 1px solid rgba(255,255,255,.94) !important;
  border-radius: 30px !important;
  background: #fff !important;
  box-shadow: 0 34px 100px rgba(18,18,22,.24), 0 5px 20px rgba(18,18,22,.08) !important;
}

.bf-auth-gate.is-reset-view .bf-auth-gate-card {
  width: min(690px, calc(100vw - 44px)) !important;
  max-width: 690px !important;
  border: 1px solid rgba(255,255,255,.94) !important;
  border-radius: 30px !important;
  background: #fff !important;
  box-shadow: 0 34px 100px rgba(18,18,22,.24), 0 5px 20px rgba(18,18,22,.08) !important;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-header {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 108px !important;
  padding: 22px 78px 22px 28px !important;
  border-bottom: 1px solid #efeff2 !important;
  background: linear-gradient(135deg, #fff8f2 0%, #fff 58%, #fff4f8 100%) !important;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 15px !important;
  width: 100% !important;
  text-align: left !important;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-logo-shell {
  display: grid !important;
  place-items: center !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  flex: 0 0 54px !important;
  border: 1px solid #ececf0 !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(20,20,24,.08), inset 0 1px 0 #fff !important;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-logo-shell .bf-auth-gate-logo {
  width: 39px !important;
  height: 39px !important;
  flex: 0 0 39px !important;
  object-fit: contain !important;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-copy {
  display: block !important;
  min-width: 0 !important;
}

.bf-auth-gate.is-register-view .bf-auth-gate-copy::before,
.bf-auth-gate.is-reset-view .bf-auth-gate-copy::before {
  display: block !important;
  margin: 0 0 4px !important;
  color: #d84f16 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: .105em !important;
  text-transform: uppercase !important;
}

.bf-auth-gate.is-register-view .bf-auth-gate-copy::before { content: "EMPIEZA EN BANANA" !important; }
.bf-auth-gate.is-reset-view .bf-auth-gate-copy::before { content: "RECUPERA TU CUENTA" !important; }

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-copy h2 {
  margin: 0 !important;
  color: #17171b !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-copy p {
  max-width: 540px !important;
  margin: 5px 0 0 !important;
  color: #6d6d76 !important;
  font-size: 12.5px !important;
  font-weight: 560 !important;
  line-height: 1.42 !important;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-close {
  top: 27px !important;
  right: 24px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border: 1px solid #e6e6ea !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.92) !important;
  color: #53535a !important;
  box-shadow: 0 8px 20px rgba(20,20,24,.06) !important;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-close:hover {
  border-color: #dedee3 !important;
  background: #fff !important;
  color: #17171b !important;
  transform: translateY(-1px) !important;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-content {
  min-height: 0 !important;
  padding: 26px 28px 30px !important;
  background: #fff !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #d8d8dd transparent !important;
}

/* ---------- Crear cuenta ---------- */
.bf-auth-gate.is-register-view #registerSheet {
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto !important;
}

.bf-auth-gate.is-register-view #registerSheet .bf-auth-panel-switch--top {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  margin: 0 0 18px !important;
  padding: 0 2px !important;
  color: #777780 !important;
  font-size: 12px !important;
}

.bf-auth-gate.is-register-view #registerSheet .bf-auth-panel-switch--top button {
  color: #c94d17 !important;
  font-weight: 900 !important;
}

.bf-auth-gate.is-register-view .registro-progress {
  gap: 10px !important;
  margin: 0 0 25px !important;
}

.bf-auth-gate.is-register-view .registro-progress span {
  min-height: 62px !important;
  gap: 6px !important;
  padding: 8px 7px !important;
  border: 1px solid #ececf0 !important;
  border-radius: 17px !important;
  background: #f8f8fa !important;
  color: #8a8a93 !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.bf-auth-gate.is-register-view .registro-progress span b {
  width: 26px !important;
  height: 26px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #e9e9ed !important;
  color: #777780 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.bf-auth-gate.is-register-view .registro-progress span small {
  color: inherit !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
}

.bf-auth-gate.is-register-view .registro-progress span.active {
  border-color: #ffd4c0 !important;
  background: linear-gradient(135deg, #fff3ea 0%, #fff9f6 100%) !important;
  color: #b84111 !important;
  box-shadow: 0 8px 20px rgba(255,91,36,.09) !important;
  transform: translateY(-1px) !important;
}

.bf-auth-gate.is-register-view .registro-progress span.active b {
  background: #ff5b24 !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(255,91,36,.20) !important;
}

.bf-auth-gate.is-register-view .registro-progress span.is-complete {
  border-color: #e7e7eb !important;
  background: #fff !important;
  color: #53535b !important;
}

.bf-auth-gate.is-register-view .registro-progress span.is-complete b {
  background: #242429 !important;
  color: #fff !important;
}

.bf-auth-gate.is-register-view .registro-step.active {
  animation: bf-auth-panel-in .20s ease both !important;
}

.bf-auth-gate.is-register-view .registro-title {
  margin: 0 !important;
  color: #202024 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1.14 !important;
  letter-spacing: -.035em !important;
  text-align: left !important;
}

.bf-auth-gate.is-register-view .registro-sub {
  max-width: 660px !important;
  margin: 6px 0 20px !important;
  color: #707079 !important;
  font-size: 12.5px !important;
  font-weight: 560 !important;
  line-height: 1.48 !important;
  text-align: left !important;
}

.bf-auth-gate.is-register-view .registro-stack,
.bf-auth-gate.is-register-view .bf-register-grid,
.bf-auth-gate.is-register-view .bf-register-demographics {
  gap: 15px !important;
}

.bf-auth-gate.is-register-view .bf-auth-field {
  gap: 7px !important;
}

.bf-auth-gate.is-register-view .bf-auth-field-label {
  color: #45454c !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  letter-spacing: -.005em !important;
}

.bf-auth-gate.is-register-view .bf-auth-field > small,
.bf-auth-gate.is-register-view .bf-auth-field-hint,
.bf-auth-gate.is-register-view .bf-auth-date-help {
  color: #888891 !important;
  font-size: 10.5px !important;
  line-height: 1.4 !important;
}

.bf-auth-gate.is-register-view .bf-auth-control {
  min-height: 54px !important;
  border: 1px solid #e6e6ea !important;
  border-radius: 16px !important;
  background: #fafafc !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

.bf-auth-gate.is-register-view .bf-auth-control:hover {
  border-color: #dcdce2 !important;
  background: #fff !important;
}

.bf-auth-gate.is-register-view .bf-auth-control:focus-within {
  border-color: rgba(255,91,36,.64) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255,91,36,.09) !important;
}

.bf-auth-gate.is-register-view .bf-auth-control input,
.bf-auth-gate.is-register-view .bf-auth-control select,
.bf-auth-gate.is-register-view .bf-auth-control textarea {
  color: #202024 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

.bf-auth-gate.is-register-view .bf-auth-control input::placeholder,
.bf-auth-gate.is-register-view .bf-auth-control textarea::placeholder {
  color: #aaaab1 !important;
  opacity: 1 !important;
}

.bf-auth-gate.is-register-view .bf-auth-phone-prefix {
  color: #797982 !important;
  font-weight: 850 !important;
}

.bf-auth-gate.is-register-view .bf-auth-password-toggle {
  border-radius: 11px !important;
  background: #f0f0f3 !important;
  color: #5f5f67 !important;
  font-weight: 850 !important;
}

.bf-auth-gate.is-register-view .bf-auth-privacy-note {
  margin-top: 15px !important;
  color: #8a8a92 !important;
  font-size: 10.5px !important;
  text-align: left !important;
}

.bf-auth-gate.is-register-view .registro-actions {
  gap: 10px !important;
  margin-top: 20px !important;
}

.bf-auth-gate.is-register-view .registro-actions .registro-btn {
  min-width: 148px !important;
  min-height: 52px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #ff5b24 0%, #ff7a3d 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(255,91,36,.18) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.bf-auth-gate.is-register-view .registro-actions .registro-btn:not(.secondary):hover:not(:disabled) {
  background: linear-gradient(135deg, #f4511c 0%, #ff7132 100%) !important;
  box-shadow: 0 13px 28px rgba(255,91,36,.24) !important;
}

.bf-auth-gate.is-register-view .registro-actions .registro-btn.secondary {
  min-width: 118px !important;
  border: 1px solid #e4e4e8 !important;
  background: #f6f6f8 !important;
  color: #4f4f56 !important;
  box-shadow: none !important;
}

.bf-auth-gate.is-register-view .registro-location-button {
  min-height: 52px !important;
  border: 1px solid #ffd5c2 !important;
  border-radius: 16px !important;
  background: #fff3eb !important;
  color: #bd4312 !important;
  font-weight: 900 !important;
}

.bf-auth-gate.is-register-view .registro-location-button:hover {
  border-color: #ffc6aa !important;
  background: #ffede1 !important;
}

.bf-auth-gate.is-register-view .bf-auth-step-note {
  margin-top: 15px !important;
  padding: 14px 15px !important;
  border: 1px solid #f0e3db !important;
  border-radius: 16px !important;
  background: #fff9f5 !important;
  color: #5d5d65 !important;
}

.bf-auth-gate.is-register-view .bf-auth-step-note > span {
  background: #ff5b24 !important;
}

.bf-auth-gate.is-register-view .registro-resend {
  margin-top: 17px !important;
  padding: 13px 15px !important;
  border: 1px solid #ececf0 !important;
  border-radius: 15px !important;
  background: #f8f8fa !important;
}

.bf-auth-gate.is-register-view .registro-resend-btn:not(:disabled) {
  color: #c94d17 !important;
  font-weight: 900 !important;
}

.bf-auth-gate.is-register-view .registro-avatar {
  max-width: 600px !important;
  gap: 14px !important;
  padding: 20px !important;
  border: 1px solid #ececf0 !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #fffaf6 0%, #fff 58%, #fff7fa 100%) !important;
}

.bf-auth-gate.is-register-view .registro-avatar > img {
  width: 116px !important;
  height: 116px !important;
  border: 5px solid #fff !important;
  box-shadow: 0 14px 32px rgba(20,20,24,.14), 0 0 0 1px #ececf0 !important;
}

.bf-auth-gate.is-register-view .registro-avatar > .registro-btn.secondary {
  min-height: 44px !important;
  padding: 0 17px !important;
  border: 1px solid #e4e4e8 !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: #424248 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: 0 6px 16px rgba(20,20,24,.05) !important;
}

.bf-auth-gate.is-register-view .bf-auth-field--bio {
  margin-top: 2px !important;
}

.bf-auth-gate.is-register-view .bf-auth-field--bio .bf-auth-control {
  align-items: stretch !important;
}

.bf-auth-gate.is-register-view .bf-auth-field--bio textarea {
  min-height: 94px !important;
  padding: 14px 15px !important;
  resize: vertical !important;
}

.bf-auth-gate.is-register-view .registro-bio-meta {
  color: #8a8a92 !important;
  font-size: 10.5px !important;
}

.bf-auth-gate.is-register-view .registro-bio-meta small:last-child {
  color: #c94d17 !important;
  font-weight: 900 !important;
}

/* ---------- Recuperar contraseña ---------- */
.bf-auth-gate.is-reset-view #resetPasswordSheet {
  width: 100% !important;
  max-width: 570px !important;
  margin: 0 auto !important;
}

.bf-auth-gate.is-reset-view .sheet-steps {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
}

.bf-auth-gate.is-reset-view .sheet-steps span {
  width: 34px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: #e8e8ec !important;
  box-shadow: none !important;
}

.bf-auth-gate.is-reset-view .sheet-steps span.active {
  width: 58px !important;
  background: linear-gradient(90deg, #ff5b24 0%, #ff8149 100%) !important;
  box-shadow: 0 4px 10px rgba(255,91,36,.18) !important;
}

.bf-auth-gate.is-reset-view .rp-step.active {
  animation: bf-auth-panel-in .20s ease both !important;
}

.bf-auth-gate.is-reset-view .bf-native-auth-form {
  gap: 15px !important;
}

.bf-auth-gate.is-reset-view .bf-auth-field {
  gap: 7px !important;
}

.bf-auth-gate.is-reset-view .bf-auth-field-label {
  color: #45454c !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
}

.bf-auth-gate.is-reset-view .bf-auth-control {
  min-height: 56px !important;
  border: 1px solid #e6e6ea !important;
  border-radius: 17px !important;
  background: #fafafc !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

.bf-auth-gate.is-reset-view .bf-auth-control:hover {
  border-color: #dcdce2 !important;
  background: #fff !important;
}

.bf-auth-gate.is-reset-view .bf-auth-control:focus-within {
  border-color: rgba(255,91,36,.64) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255,91,36,.09) !important;
}

.bf-auth-gate.is-reset-view .bf-auth-control input {
  min-height: 54px !important;
  color: #202024 !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
}

.bf-auth-gate.is-reset-view .bf-auth-control input::placeholder {
  color: #aaaab1 !important;
}

.bf-auth-gate.is-reset-view .bf-auth-phone-prefix {
  color: #797982 !important;
  font-weight: 850 !important;
}

.bf-auth-gate.is-reset-view .bf-auth-control--code input {
  text-align: center !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: .26em !important;
}

.bf-auth-gate.is-reset-view .bf-auth-password-toggle {
  border-radius: 11px !important;
  background: #f0f0f3 !important;
  color: #5f5f67 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.bf-auth-gate.is-reset-view .bf-auth-primary-button {
  min-height: 54px !important;
  margin-top: 1px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #ff5b24 0%, #ff7a3d 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(255,91,36,.20) !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
}

.bf-auth-gate.is-reset-view .bf-auth-primary-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #f4511c 0%, #ff7132 100%) !important;
  box-shadow: 0 13px 28px rgba(255,91,36,.25) !important;
  transform: translateY(-1px) !important;
}

.bf-auth-gate.is-reset-view .bf-auth-secondary-button {
  min-height: 46px !important;
  border: 1px solid #e5e5e9 !important;
  border-radius: 14px !important;
  background: #f7f7f9 !important;
  color: #55555d !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.bf-auth-gate.is-reset-view .rp-destination,
.bf-auth-gate.is-reset-view .rp-hint {
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid #ececf0 !important;
  border-radius: 14px !important;
  background: #f8f8fa !important;
  color: #777780 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.48 !important;
  text-align: left !important;
}

.bf-auth-gate.is-reset-view .rp-destination:not([hidden]) {
  display: block !important;
}

.bf-auth-gate.is-reset-view .rp-inline-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.bf-auth-gate.is-reset-view .form-message {
  border-radius: 14px !important;
  font-size: 11.5px !important;
}

.bf-auth-gate.is-reset-view .bf-auth-panel-switch {
  margin: 18px 0 0 !important;
  padding: 13px 15px !important;
  border: 1px solid #ececf0 !important;
  border-radius: 15px !important;
  background: #f7f7f9 !important;
}

.bf-auth-gate.is-reset-view .bf-auth-panel-switch button {
  color: #c94d17 !important;
  font-weight: 900 !important;
}

.bf-auth-gate:is(.is-register-view, .is-reset-view) :where(button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(255,91,36,.18) !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  .bf-auth-gate:is(.is-register-view, .is-reset-view) {
    align-items: flex-end !important;
    justify-content: stretch !important;
    padding: max(10px, env(safe-area-inset-top)) 0 0 !important;
  }

  .bf-auth-gate.is-register-view .bf-auth-gate-card,
  .bf-auth-gate.is-reset-view .bf-auth-gate-card {
    align-self: flex-end !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(var(--bf-auth-viewport-height) - max(10px, env(safe-area-inset-top))) !important;
    margin: 0 !important;
    border-width: 1px 0 0 !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: 0 -16px 52px rgba(18,18,22,.20) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .bf-auth-gate.is-register-view .bf-auth-gate-handle {
    display: block !important;
    width: 40px !important;
    height: 5px !important;
    margin: 9px auto 0 !important;
    border-radius: 999px !important;
    background: rgba(60,60,67,.24) !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-header {
    min-height: 0 !important;
    gap: 12px !important;
    padding: 13px 56px 13px 16px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-heading {
    gap: 11px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-logo-shell {
    width: 43px !important;
    height: 43px !important;
    min-width: 43px !important;
    flex-basis: 43px !important;
    border-radius: 14px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-logo-shell .bf-auth-gate-logo {
    width: 32px !important;
    height: 32px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-copy::before {
    margin-bottom: 2px !important;
    font-size: 8.5px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-copy h2 {
    font-size: 18px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-copy p {
    max-width: 255px !important;
    margin-top: 3px !important;
    font-size: 10.8px !important;
    line-height: 1.33 !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-close {
    top: 16px !important;
    right: 13px !important;
    width: 37px !important;
    height: 37px !important;
    min-width: 37px !important;
    min-height: 37px !important;
    border-radius: 13px !important;
    box-shadow: none !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-content {
    padding: 18px 15px calc(17px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .bf-auth-gate.is-register-view #registerSheet,
  .bf-auth-gate.is-reset-view #resetPasswordSheet {
    max-width: none !important;
  }

  .bf-auth-gate.is-register-view #registerSheet .bf-auth-panel-switch--top {
    justify-content: center !important;
    margin-bottom: 14px !important;
  }

  .bf-auth-gate.is-register-view .registro-progress {
    gap: 6px !important;
    margin-bottom: 18px !important;
  }

  .bf-auth-gate.is-register-view .registro-progress span {
    min-height: 50px !important;
    padding: 6px 2px !important;
    border-radius: 13px !important;
  }

  .bf-auth-gate.is-register-view .registro-progress span b {
    width: 23px !important;
    height: 23px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
  }

  .bf-auth-gate.is-register-view .registro-progress span small {
    font-size: 8.7px !important;
  }

  .bf-auth-gate.is-register-view .registro-title {
    font-size: 19px !important;
  }

  .bf-auth-gate.is-register-view .registro-sub {
    margin-bottom: 16px !important;
    font-size: 11.5px !important;
  }

  .bf-auth-gate.is-register-view .bf-register-grid,
  .bf-auth-gate.is-register-view .bf-register-demographics {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .bf-auth-gate.is-register-view .bf-auth-control,
  .bf-auth-gate.is-reset-view .bf-auth-control {
    min-height: 52px !important;
    border-radius: 15px !important;
  }

  .bf-auth-gate.is-register-view .bf-auth-control input,
  .bf-auth-gate.is-register-view .bf-auth-control select,
  .bf-auth-gate.is-reset-view .bf-auth-control input {
    min-height: 50px !important;
    font-size: 16px !important; /* evita zoom de Safari */
  }

  .bf-auth-gate.is-register-view .registro-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 9px !important;
    margin-top: 17px !important;
  }

  .bf-auth-gate.is-register-view .registro-actions .registro-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    border-radius: 14px !important;
  }

  .bf-auth-gate.is-register-view .registro-actions .registro-btn:only-child,
  .bf-auth-gate.is-register-view .registro-actions > span + .registro-btn:last-child {
    grid-column: 1 / -1 !important;
  }

  .bf-auth-gate.is-register-view .registro-avatar {
    padding: 16px !important;
    border-radius: 19px !important;
  }

  .bf-auth-gate.is-register-view .registro-avatar > img {
    width: 96px !important;
    height: 96px !important;
  }

  .bf-auth-gate.is-reset-view .sheet-steps {
    margin-bottom: 16px !important;
  }

  .bf-auth-gate.is-reset-view .bf-native-auth-form {
    gap: 13px !important;
  }

  .bf-auth-gate.is-reset-view .bf-auth-primary-button {
    min-height: 52px !important;
    border-radius: 14px !important;
  }

  .bf-auth-gate.is-reset-view .rp-inline-actions {
    gap: 8px !important;
  }

  .bf-auth-gate.is-reset-view .bf-auth-panel-switch {
    margin-top: 15px !important;
    padding: 12px !important;
  }
}

@media (max-width: 390px) {
  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-header {
    padding-left: 13px !important;
    padding-right: 52px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-heading {
    gap: 9px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-logo-shell {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-logo-shell .bf-auth-gate-logo {
    width: 30px !important;
    height: 30px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-copy p {
    max-width: 220px !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-content {
    padding-right: 13px !important;
    padding-left: 13px !important;
  }
}

/* Mantiene la protección sólida durante el teclado de iOS también en estas vistas. */
@media (max-width: 760px) {
  .bf-auth-gate:is(.is-register-view, .is-reset-view).is-keyboard-open {
    align-items: stretch !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view).is-keyboard-open .bf-auth-gate-backdrop {
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  body.bf-web-page .bf-auth-gate:is(.is-register-view, .is-reset-view).is-keyboard-open .bf-auth-gate-card,
  body.bf-auth-standalone .bf-auth-gate:is(.is-register-view, .is-reset-view).is-keyboard-open .bf-auth-gate-card,
  .bf-auth-gate:is(.is-register-view, .is-reset-view).is-keyboard-open .bf-auth-gate-card {
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    transform: none !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view).is-keyboard-open .bf-auth-gate-handle {
    display: none !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view).is-keyboard-open .bf-auth-gate-header {
    flex: 0 0 auto !important;
    padding-top: max(12px, env(safe-area-inset-top)) !important;
    border-top: 0 !important;
  }

  .bf-auth-gate:is(.is-register-view, .is-reset-view).is-keyboard-open .bf-auth-gate-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 18px !important;
    background: #fff !important;
  }
}

/* Ajustes secundarios del alta para eliminar restos del acento rosa anterior. */
.bf-auth-gate.is-register-view .registro-location-fallback {
  border-color: #f3ded3 !important;
  background: linear-gradient(145deg, #fff9f5 0%, #fff 62%) !important;
  box-shadow: 0 12px 32px rgba(138,67,26,.06) !important;
}

.bf-auth-gate.is-register-view .registro-location-manual-control input:focus {
  border-color: rgba(255,91,36,.42) !important;
  box-shadow: 0 0 0 3px rgba(255,91,36,.08) !important;
}

.bf-auth-gate.is-register-view .registro-location-manual-save {
  border-color: #ff5b24 !important;
  background: linear-gradient(135deg, #ff5b24 0%, #ff7a3d 100%) !important;
  box-shadow: 0 9px 20px rgba(255,91,36,.16) !important;
}

.bf-auth-gate.is-register-view .glass-modal-overlay {
  background: rgba(18,18,21,.40) !important;
  -webkit-backdrop-filter: blur(12px) saturate(115%) !important;
  backdrop-filter: blur(12px) saturate(115%) !important;
}

.bf-auth-gate.is-register-view .glass-modal {
  width: min(390px, calc(100vw - 34px)) !important;
  padding: 24px !important;
  border: 1px solid #ececf0 !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 28px 80px rgba(20,20,24,.22) !important;
}

.bf-auth-gate.is-register-view .glass-modal h3 {
  color: #202024 !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  letter-spacing: -.03em !important;
}

.bf-auth-gate.is-register-view .glass-modal p {
  color: #6d6d76 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.bf-auth-gate.is-register-view .glass-modal-btn.primary {
  min-height: 49px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ff5b24 0%, #ff7a3d 100%) !important;
  box-shadow: 0 10px 22px rgba(255,91,36,.18) !important;
}


/* === AUTH INPUT / KEYBOARD STABILITY · 2026-10-04 === */
.bf-auth-gate .bf-auth-password-toggle {
  position: relative !important;
  z-index: 5 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  cursor: pointer !important;
}

.bf-auth-gate .bf-auth-control--password input {
  padding-right: 92px !important;
}

@media (max-width: 760px) {
  .bf-auth-gate .bf-auth-control input,
  .bf-auth-gate .bf-auth-control select,
  .bf-auth-gate .bf-auth-control textarea {
    font-size: 16px !important;
  }

  .bf-auth-gate .bf-auth-control textarea {
    min-height: 112px !important;
    line-height: 1.45 !important;
    resize: none !important;
  }

  .bf-auth-gate.is-keyboard-open {
    position: fixed !important;
    top: var(--bf-auth-viewport-top) !important;
    left: var(--bf-auth-viewport-left) !important;
    right: auto !important;
    bottom: auto !important;
    width: var(--bf-auth-viewport-width) !important;
    height: var(--bf-auth-viewport-height) !important;
    min-height: var(--bf-auth-viewport-height) !important;
    max-height: var(--bf-auth-viewport-height) !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-card,
  body.bf-web-page .bf-auth-gate.is-keyboard-open .bf-auth-gate-card,
  body.bf-auth-standalone .bf-auth-gate.is-keyboard-open .bf-auth-gate-card {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-header {
    flex: 0 0 auto !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-gate-content {
    flex: 1 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;
    scroll-behavior: auto !important;
    scroll-padding-top: 24vh !important;
    scroll-padding-bottom: 30vh !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
  }

  .bf-auth-gate.is-keyboard-open .registro-step.active,
  .bf-auth-gate.is-keyboard-open .bf-native-auth-form {
    min-height: 0 !important;
  }

  .bf-auth-gate.is-keyboard-open .bf-auth-field--bio {
    scroll-margin-top: 22vh !important;
    scroll-margin-bottom: 22vh !important;
  }
}

/* =========================================================
   AUTH MOTION POLISH · 2026-10-04
   Movimiento corto, continuo y sin gesto de arrastre iOS.
========================================================= */
.bf-auth-gate {
  --bf-auth-motion-soft: cubic-bezier(.22, 1, .36, 1);
  --bf-auth-motion-ui: cubic-bezier(.2, .8, .2, 1);
  transition: opacity 240ms var(--bf-auth-motion-ui), visibility 240ms linear !important;
}

/* El modal ya no es una sheet arrastrable: se elimina la barra superior de iOS. */
.bf-auth-gate-handle,
.bf-auth-gate.is-login-view .bf-auth-gate-handle,
.bf-auth-gate.is-register-view .bf-auth-gate-handle,
.bf-auth-gate.is-keyboard-open .bf-auth-gate-handle {
  display: none !important;
}

.bf-auth-gate-card,
.bf-auth-gate.is-login-view .bf-auth-gate-card,
.bf-auth-gate.is-register-view .bf-auth-gate-card,
.bf-auth-gate.is-reset-view .bf-auth-gate-card {
  transform: translate3d(0, 10px, 0) scale(.995) !important;
  opacity: 0 !important;
  transition:
    transform 360ms var(--bf-auth-motion-soft),
    opacity 240ms var(--bf-auth-motion-ui),
    width 360ms var(--bf-auth-motion-soft),
    max-height 360ms var(--bf-auth-motion-soft) !important;
  will-change: transform, opacity;
}

.bf-auth-gate.is-open .bf-auth-gate-card,
.bf-auth-gate.is-open.is-login-view .bf-auth-gate-card,
.bf-auth-gate.is-open.is-register-view .bf-auth-gate-card,
.bf-auth-gate.is-open.is-reset-view .bf-auth-gate-card {
  transform: translate3d(0, 0, 0) scale(1) !important;
  opacity: 1 !important;
}

.bf-auth-gate.is-closing {
  pointer-events: none !important;
}

.bf-auth-gate.is-closing .bf-auth-gate-card {
  transform: translate3d(0, 8px, 0) scale(.997) !important;
  opacity: 0 !important;
}

.bf-auth-gate-backdrop {
  transition: background-color 260ms var(--bf-auth-motion-ui), backdrop-filter 260ms var(--bf-auth-motion-ui) !important;
}

/* El cierre siempre queda por encima de cabecera/contenido y responde a tap. */
.bf-auth-gate .bf-auth-gate-close,
.bf-auth-gate.is-login-view .bf-auth-gate-close,
.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-close {
  z-index: 30 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  transition:
    transform 220ms var(--bf-auth-motion-soft),
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease !important;
}

.bf-auth-gate .bf-auth-gate-close:active,
.bf-auth-gate.is-login-view .bf-auth-gate-close:active,
.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-close:active {
  transform: scale(.975) !important;
}

/* Cambios de vista/paso: movimiento mínimo, sin saltos ni scroll animado simultáneo. */
.bf-native-auth-panel,
.bf-auth-gate .registro-step.active,
.bf-auth-gate.is-register-view .registro-step.active,
.bf-auth-gate.is-reset-view .rp-step.active {
  animation: bf-auth-panel-silk 300ms var(--bf-auth-motion-soft) both !important;
}

@keyframes bf-auth-panel-silk {
  from { opacity: 0; transform: translate3d(0, 7px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.bf-auth-gate .bf-auth-control,
.bf-auth-gate .registro-btn,
.bf-auth-gate .bf-auth-primary-button,
.bf-auth-gate .registro-location-button,
.bf-auth-gate .bf-auth-password-toggle,
.bf-auth-gate .bf-auth-text-button,
.bf-auth-gate .bf-auth-panel-switch button {
  transition-duration: 220ms !important;
  transition-timing-function: var(--bf-auth-motion-ui) !important;
}

/* El progreso cambia estado sin pequeño salto vertical. */
.bf-auth-gate.is-register-view .registro-progress span.active {
  transform: none !important;
  transition:
    background-color 260ms var(--bf-auth-motion-ui),
    border-color 260ms var(--bf-auth-motion-ui),
    color 260ms var(--bf-auth-motion-ui),
    box-shadow 260ms var(--bf-auth-motion-ui) !important;
}

@media (max-width: 760px) {
  .bf-auth-gate-card,
  .bf-auth-gate.is-login-view .bf-auth-gate-card,
  .bf-auth-gate.is-register-view .bf-auth-gate-card,
  .bf-auth-gate.is-reset-view .bf-auth-gate-card {
    /* Antes recorría toda la pantalla; ahora el recorrido es corto y natural. */
    transform: translate3d(0, 24px, 0) scale(.998) !important;
    opacity: 0 !important;
    transition:
      transform 420ms var(--bf-auth-motion-soft),
      opacity 260ms var(--bf-auth-motion-ui) !important;
  }

  .bf-auth-gate.is-open .bf-auth-gate-card,
  .bf-auth-gate.is-open.is-login-view .bf-auth-gate-card,
  .bf-auth-gate.is-open.is-register-view .bf-auth-gate-card,
  .bf-auth-gate.is-open.is-reset-view .bf-auth-gate-card {
    transform: translate3d(0, 0, 0) scale(1) !important;
    opacity: 1 !important;
  }

  .bf-auth-gate.is-closing .bf-auth-gate-card {
    transform: translate3d(0, 16px, 0) scale(.998) !important;
    opacity: 0 !important;
  }

  /* Con teclado no animamos geometría: visualViewport manda y evita saltos en Safari/Chrome iOS. */
  .bf-auth-gate.is-keyboard-open .bf-auth-gate-card,
  body.bf-web-page .bf-auth-gate.is-keyboard-open .bf-auth-gate-card,
  body.bf-auth-standalone .bf-auth-gate.is-keyboard-open .bf-auth-gate-card {
    transform: none !important;
    opacity: 1 !important;
    transition: opacity 180ms ease !important;
    will-change: auto;
  }

  .bf-auth-gate.is-keyboard-open .bf-native-auth-panel,
  .bf-auth-gate.is-keyboard-open .registro-step.active {
    animation-duration: 220ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-auth-gate,
  .bf-auth-gate *,
  .bf-auth-gate *::before,
  .bf-auth-gate *::after {
    scroll-behavior: auto !important;
  }
}



/* =========================================================
   AUTH HEADER FINAL · 2026-10-04
   Login / registro / recuperación comparten cierre y NO handle.
========================================================= */
.bf-auth-gate .bf-auth-gate-handle,
.bf-auth-gate [data-bf-auth-drag-handle],
.bf-auth-gate.is-login-view .bf-auth-gate-handle,
.bf-auth-gate.is-register-view .bf-auth-gate-handle,
.bf-auth-gate.is-reset-view .bf-auth-gate-handle,
.bf-auth-gate.is-keyboard-open .bf-auth-gate-handle {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  touch-action: none !important;
}

/* Mismo botón de cierre en las tres vistas. */
.bf-auth-gate .bf-auth-gate-close,
.bf-auth-gate.is-login-view .bf-auth-gate-close,
.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-close {
  position: absolute !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e6e6ea !important;
  background: rgba(255,255,255,.96) !important;
  color: #53535a !important;
  line-height: 0 !important;
  box-shadow: 0 8px 20px rgba(20,20,24,.06) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.bf-auth-gate .bf-auth-gate-close svg,
.bf-auth-gate.is-login-view .bf-auth-gate-close svg,
.bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-close svg {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  transform-origin: 50% 50% !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.15 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.bf-auth-gate .bf-auth-gate-close:focus:not(:focus-visible) {
  outline: none !important;
}

@media (max-width: 760px) {
  .bf-auth-gate .bf-auth-gate-header,
  .bf-auth-gate.is-login-view .bf-auth-gate-header,
  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-header {
    padding-top: 13px !important;
  }

  .bf-auth-gate .bf-auth-gate-close,
  .bf-auth-gate.is-login-view .bf-auth-gate-close,
  .bf-auth-gate:is(.is-register-view, .is-reset-view) .bf-auth-gate-close {
    top: 16px !important;
    right: 13px !important;
    width: 37px !important;
    height: 37px !important;
    min-width: 37px !important;
    min-height: 37px !important;
    max-width: 37px !important;
    max-height: 37px !important;
    border-radius: 13px !important;
    box-shadow: none !important;
  }

  /* El focus programático nunca vuelve a dibujar el aro naranja en iOS. */
  .bf-auth-gate .bf-auth-gate-close:focus,
  .bf-auth-gate .bf-auth-gate-close:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
}
