/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
}

/* =========================
   BODY
========================= */
body {
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f8bbd0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px; 
  position: relative;
  color: #fff;
}

/* Evitar scroll en login */
body.auth-login {
  height: 100vh;
  overflow: hidden;
}

body.auth-register {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body.auth-reset {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* =========================
   AUTH LAYOUT (LOGIN)
========================= */
.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 14px 24px;
}

/* Mobile-first: ocultamos marketing (solo se ve en desktop) */
.auth-marketing { display: none; }

.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vibas-login-logo {
  --logo-size: 58px;
  --coin-size: 18%;
  position: relative;
  width: var(--logo-size);
  flex: 0 0 var(--logo-size);
  aspect-ratio: 1;
  transform-origin: center;
  transition:
    transform 0.32s ease,
    filter 0.32s ease,
    opacity 0.32s ease;
}

.vibas-login-logo--hero {
  --logo-size: 92px;
}

.vibas-login-logo--panel {
  --logo-size: 71px;
}

.vibas-login-logo-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.76) brightness(0.92) contrast(1.02);
  transform: scale(0.985);
  transition:
    transform 0.35s ease,
    filter 0.35s ease,
    opacity 0.35s ease;
}

.vibas-login-logo-glow {
  position: absolute;
  inset: 18%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 142, 70, 0.34) 0%, rgba(255, 90, 143, 0.22) 38%, rgba(129, 46, 255, 0.08) 68%, transparent 100%);
  filter: blur(20px);
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 0.26s ease, transform 0.32s ease;
}

.vibas-login-logo-sleep-mask {
  position: absolute;
  top: 17%;
  left: 12%;
  z-index: 3;
  width: 26%;
  height: 22%;
  border-radius: 52% 30% 54% 30%;
  background:
    radial-gradient(circle at 45% 55%, rgba(24, 10, 33, 0.08), rgba(9, 10, 13, 0.88) 58%, rgba(9, 10, 13, 0) 100%);
  filter: blur(3px);
  opacity: 0.84;
  transition: opacity 0.26s ease, transform 0.34s ease;
}

.vibas-login-logo-flame {
  position: absolute;
  top: 16%;
  left: 16%;
  z-index: 4;
  width: 18%;
  height: 22%;
  border-radius: 58% 42% 58% 42%;
  background:
    radial-gradient(circle at 48% 72%, rgba(255, 232, 155, 0.9) 0%, rgba(255, 186, 84, 0.95) 22%, rgba(255, 116, 50, 0.85) 58%, rgba(255, 116, 50, 0) 100%);
  filter: blur(2px);
  opacity: 0.12;
  transform: rotate(-18deg) scale(0.88);
  transition: opacity 0.22s ease, transform 0.28s ease, filter 0.28s ease;
}

.vibas-login-logo-coin {
  position: absolute;
  right: 12%;
  bottom: 14%;
  z-index: 4;
  width: var(--coin-size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 98, 0.42);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 245, 181, 0.95), rgba(255, 202, 67, 0.95) 42%, rgba(221, 133, 8, 0.94) 88%);
  box-shadow:
    0 0 0 1px rgba(255, 185, 52, 0.18) inset,
    0 10px 20px rgba(0, 0, 0, 0.22);
  opacity: 0.78;
  transform: rotate(0deg) scale(0.92);
  transition: opacity 0.24s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.vibas-login-logo-coin span {
  font-size: clamp(9px, 0.85vw, 12px);
  color: rgba(255, 249, 212, 0.95);
  text-shadow: 0 0 10px rgba(255, 239, 182, 0.6);
}

.vibas-login-logo-particles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.vibas-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 245, 194, 0.95) 0%, rgba(255, 176, 77, 0.92) 46%, rgba(255, 176, 77, 0) 100%);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.35);
}

.vibas-particle--1 { --dx: -34px; --dy: -18px; }
.vibas-particle--2 { --dx: -12px; --dy: -42px; }
.vibas-particle--3 { --dx: 14px; --dy: -34px; }
.vibas-particle--4 { --dx: 34px; --dy: -8px; }
.vibas-particle--5 { --dx: 20px; --dy: 22px; }
.vibas-particle--6 { --dx: -24px; --dy: 18px; }

.auth-logo-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.98);
}

.auth-kicker {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.76);
}

.auth-headline {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.6px;
  color: #fff;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

.auth-headline-accent {
  color: #ff4d8a;
}

.auth-metrics {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.auth-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(9, 10, 15, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.auth-metric-icon {
  width: 24px;
  color: #ff4d8a;
  font-weight: 900;
  text-align: center;
}

.auth-metric-text {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
}

@media (min-width: 900px) {
  .auth-shell {
    min-height: 100vh;
    width: min(1500px, 100%);
    grid-template-columns: minmax(300px, 420px) 460px minmax(220px, 1fr);
    justify-content: center;
    gap: 56px;
    padding: 24px 72px;
  }

  .auth-marketing {
    display: block;
    grid-column: 1;
    padding: 0;
    justify-self: end;
    align-self: center;
    max-width: 420px;
  }

  body.auth-login .login-container {
    grid-column: 2;
    justify-self: center;
    align-self: center;
    transform: translateX(-70px);
  }

  body.auth-reset .auth-metrics {
    display: grid;
    grid-template-columns: max-content max-content;
  }

  body.auth-reset .auth-marketing {
    transform: translateX(-70px);
  }

  .auth-footer {
    display: none;
  }

  body.auth-register .auth-shell {
    min-height: 100vh;
    width: 100%;
    grid-template-columns: minmax(520px, 620px);
    justify-content: center;
    gap: 0;
    padding: 40px 24px;
  }

  body.auth-register .login-container {
    justify-self: center;
    align-self: center;
    transform: translateX(-200px);
  }
}

/* En pantallas muy anchas, deja más aire a la derecha para que el panel no se vaya */
@media (min-width: 1280px) {
  .auth-shell {
    padding-right: 0;
  }
}

/* =========================
   AUTH HERO BACKGROUND
========================= */
.auth-page {
  background: #090a0d;
  background-image: url("/assets/vibas-login-hero-v2.webp");
  background-size: cover;
  background-position: calc(100% + 36px) center;
  background-repeat: no-repeat;
}

body.auth-register.auth-page {
  background-position: center center;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 34%, rgba(255, 77, 138, 0.14), transparent 20%),
    linear-gradient(90deg, rgba(4, 5, 9, 0.985) 0%, rgba(6, 7, 11, 0.955) 28%, rgba(8, 9, 12, 0.88) 42%, rgba(8, 9, 12, 0.48) 56%, rgba(8, 9, 12, 0.16) 68%, rgba(8, 9, 12, 0.04) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.46));
  z-index: 0;
}

body.auth-register.auth-page::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 77, 138, 0.12), transparent 18%),
    linear-gradient(90deg, rgba(4, 5, 9, 0.96) 0%, rgba(6, 7, 11, 0.88) 42%, rgba(8, 9, 12, 0.66) 62%, rgba(8, 9, 12, 0.34) 80%, rgba(8, 9, 12, 0.16) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.54));
}

@media (max-width: 600px) {
  .auth-page {
    background-image: url("/assets/vibas-login-hero-mobile-v2.webp");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  body.auth-page {
    align-items: center;
  }

  .auth-page::before {
    background:
      linear-gradient(90deg, rgba(5, 6, 10, 0.9) 0%, rgba(7, 8, 12, 0.74) 36%, rgba(8, 9, 12, 0.38) 72%, rgba(8, 9, 12, 0.14) 100%);
  }

  .auth-page .login-container {
    max-height: none;
    overflow: visible;
  }
}

.auth-page .login-container {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.5);
}

/* Panel oscuro como propuesta (solo login) */
body.auth-login .login-container {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.9), rgba(9, 10, 14, 0.84));
  border: 1px solid rgba(255, 77, 138, 0.19);
  box-shadow:
    0 0 0 1px rgba(255, 77, 138, 0.05),
    0 28px 70px rgba(0, 0, 0, 0.5);
  margin-top: 0;
}

body.auth-reset .login-container {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.9), rgba(9, 10, 14, 0.84));
  border: 1px solid rgba(255, 77, 138, 0.28);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  margin-top: 0;
}

body.auth-register .login-container {
  width: 100%;
  max-width: 620px;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.92), rgba(9, 10, 14, 0.88));
  border: 1px solid rgba(255, 77, 138, 0.24);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

body.auth-register .login-container select,
body.auth-register .login-container input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

body.auth-register .login-container select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%), linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

body.auth-register .login-container select option {
  color: #111;
}

body.auth-register .login-container input::placeholder,
body.auth-register .login-container textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

body.auth-register .login-container input:focus,
body.auth-register .login-container select:focus,
body.auth-register .login-container textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 77, 138, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 77, 138, 0.12);
}

body.auth-login .login-container input:-webkit-autofill,
body.auth-login .login-container input:-webkit-autofill:hover,
body.auth-login .login-container input:-webkit-autofill:focus,
body.auth-login .login-container textarea:-webkit-autofill,
body.auth-login .login-container textarea:-webkit-autofill:hover,
body.auth-login .login-container textarea:-webkit-autofill:focus,
body.auth-login .login-container select:-webkit-autofill,
body.auth-login .login-container select:-webkit-autofill:hover,
body.auth-login .login-container select:-webkit-autofill:focus,
body.auth-register .login-container input:-webkit-autofill,
body.auth-register .login-container input:-webkit-autofill:hover,
body.auth-register .login-container input:-webkit-autofill:focus,
body.auth-register .login-container textarea:-webkit-autofill,
body.auth-register .login-container textarea:-webkit-autofill:hover,
body.auth-register .login-container textarea:-webkit-autofill:focus,
body.auth-register .login-container select:-webkit-autofill,
body.auth-register .login-container select:-webkit-autofill:hover,
body.auth-register .login-container select:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  border-color: rgba(255, 77, 138, 0.32) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(24, 25, 30, 0.96) inset !important;
  box-shadow: 0 0 0 1000px rgba(24, 25, 30, 0.96) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

body.auth-register .login-container a {
  color: #ff4d8a;
}

.auth-register-shell {
  min-height: 100vh;
  width: 100%;
}

.register-container {
  position: relative;
  z-index: 1;
}

.register-progress {
  margin: 6px 0 20px;
}

.register-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.register-progress-bar span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4d8a, #d61157);
  box-shadow: 0 8px 20px rgba(255, 77, 138, 0.3);
  transition: width 0.25s ease;
}

.register-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
}

.register-progress-meta strong {
  color: #fff;
  font-size: 14px;
}

.register-step[hidden] {
  display: none !important;
}

.register-step.is-active {
  animation: fadeIn 0.25s ease;
}

.register-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
  margin-top: 22px;
}

.secondary-cta {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.08);
}

.secondary-cta[hidden] {
  display: none;
}

.register-legal {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
}

.register-legal .terms-label {
  align-items: flex-start;
}

.register-legal .terms-label input[type="checkbox"] {
  margin-top: 3px;
}

.register-state-fallback[hidden] {
  display: none !important;
}

.register-state-message {
  margin: 12px 0 2px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 900px) {
  body.auth-register.register-state-fallback-visible {
    align-items: flex-start;
  }

  body.auth-register.register-state-fallback-visible .auth-shell {
    align-items: center;
    min-height: calc(100vh - 20px);
    padding-top: 0;
    padding-bottom: 0;
  }

  body.auth-register.register-state-fallback-visible .login-container {
    align-self: center;
    max-height: calc(100vh - 20px);
  }

  body.auth-register.register-state-fallback-visible .register-secondary-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: end;
  }

  body.auth-register.register-state-fallback-visible .register-phone-field {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  body.auth-register.register-state-fallback-visible .register-state-fallback {
    display: contents;
  }

  body.auth-register.register-state-fallback-visible .register-state-message {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 4px 0 0;
    text-align: left;
  }

  body.auth-register.register-state-fallback-visible .register-state-field {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }
}

body.auth-register .phone-group #dial-prefix {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

body.auth-register .link-row {
  margin-top: 18px;
}

.login-panel {
  width: 100%;
}

.login-panel-head {
  text-align: center;
  margin-bottom: 20px;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.login-overline {
  margin-top: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.08);
}

body.auth-register .login-overline {
  color: rgba(255, 255, 255, 0.9);
}

.login-overline-brand {
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}

body.auth-login .login-panel-head .login-overline {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

body.auth-login .login-panel-head .login-overline-brand {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

body.auth-login.is-login-pending .primary-cta {
  opacity: 0.8;
  cursor: wait;
}

body.auth-login.login-success .login-container {
  animation: vibas-panel-flash 1120ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

body.auth-login.login-success .login-panel-head {
  animation: vibas-head-lift 1080ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.auth-login.login-success .vibas-login-logo {
  animation: vibas-logo-awaken 1180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.auth-login.login-success .vibas-login-logo-image {
  filter: saturate(1.24) brightness(1.14) contrast(1.08);
  transform: scale(1.05);
}

body.auth-login.login-success .vibas-login-logo-glow {
  opacity: 1;
  transform: scale(1.2);
  animation: vibas-logo-glow 1180ms ease-out both;
}

body.auth-login.login-success .vibas-login-logo-sleep-mask {
  opacity: 0;
  transform: translate(-8px, -8px) scale(0.74);
}

body.auth-login.login-success .vibas-login-logo-flame {
  opacity: 1;
  transform: rotate(-10deg) scale(1.22);
  filter: blur(1px);
  animation: vibas-flame-flicker 920ms ease-out 1;
}

body.auth-login.login-success .vibas-login-logo-coin {
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(255, 205, 76, 0.24) inset,
    0 18px 30px rgba(0, 0, 0, 0.32);
  animation: vibas-coin-spin 1080ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

body.auth-login.login-success .vibas-particle {
  animation: vibas-particle-burst 760ms ease-out both;
}

body.auth-login.login-success .vibas-particle--2,
body.auth-login.login-success .vibas-particle--5 {
  animation-delay: 0.04s;
}

body.auth-login.login-success .vibas-particle--3,
body.auth-login.login-success .vibas-particle--6 {
  animation-delay: 0.08s;
}

@keyframes vibas-logo-awaken {
  0% {
    transform: scale(1) rotate(0deg);
  }
  18% {
    transform: scale(1.28) rotate(-1.8deg);
  }
  34% {
    transform: scale(1.39) rotate(1.3deg) translateX(2px);
  }
  50% {
    transform: scale(1.33) rotate(-1.3deg) translateX(-2px);
  }
  68% {
    transform: scale(1.16) rotate(0.6deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes vibas-logo-awaken-mobile {
  0% {
    transform: scale(1) rotate(0deg);
  }
  18% {
    transform: scale(1.54) rotate(-2deg);
  }
  34% {
    transform: scale(1.82) rotate(1.4deg) translateX(2px);
  }
  50% {
    transform: scale(1.68) rotate(-1.4deg) translateX(-2px);
  }
  70% {
    transform: scale(1.28) rotate(0.6deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes vibas-panel-flash {
  0% {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 77, 138, 0.28);
  }
  28% {
    box-shadow:
      0 0 0 1px rgba(255, 150, 76, 0.24),
      0 0 48px rgba(255, 108, 68, 0.16),
      0 0 80px rgba(255, 61, 138, 0.12),
      0 28px 78px rgba(0, 0, 0, 0.56);
    border-color: rgba(255, 156, 82, 0.62);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 77, 138, 0.12),
      0 28px 70px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 77, 138, 0.32);
  }
}

@keyframes vibas-head-lift {
  0% {
    transform: translateY(0);
  }
  32% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes vibas-logo-glow {
  0% {
    opacity: 0;
  }
  26% {
    opacity: 1;
  }
  100% {
    opacity: 0.62;
  }
}

@keyframes vibas-flame-flicker {
  0% {
    opacity: 0.12;
  }
  30% {
    opacity: 1;
  }
  52% {
    opacity: 0.72;
  }
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0.92;
  }
}

@keyframes vibas-coin-spin {
  0% {
    transform: rotateY(0deg) rotate(0deg) scale(0.92);
  }
  42% {
    transform: rotateY(190deg) rotate(7deg) scale(1.05);
  }
  72% {
    transform: rotateY(330deg) rotate(-5deg) scale(1.02);
  }
  100% {
    transform: rotateY(360deg) rotate(0deg) scale(1);
  }
}

@keyframes vibas-particle-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.25);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), var(--dy), 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vibas-login-logo,
  .vibas-login-logo-image,
  .vibas-login-logo-glow,
  .vibas-login-logo-sleep-mask,
  .vibas-login-logo-flame,
  .vibas-login-logo-coin,
  .vibas-particle,
  .login-container,
  .login-panel-head {
    animation: none !important;
    transition: none !important;
  }

  body.auth-login.login-success .vibas-login-logo {
    transform: scale(1.14);
  }

  body.auth-login.login-success .vibas-login-logo-image {
    filter: saturate(1.22) brightness(1.12);
    transform: scale(1.04);
  }

  body.auth-login.login-success .vibas-login-logo-glow {
    opacity: 0.88;
    transform: scale(1.15);
  }

  body.auth-login.login-success .vibas-login-logo-sleep-mask {
    opacity: 0;
  }

  body.auth-login.login-success .vibas-login-logo-flame {
    opacity: 1;
    transform: rotate(-10deg) scale(1.14);
  }

  body.auth-login.login-success .vibas-login-logo-coin {
    opacity: 1;
    transform: scale(1.06);
  }

  body.auth-login.login-success .login-container {
    border-color: rgba(255, 156, 82, 0.62);
    box-shadow:
      0 0 0 1px rgba(255, 150, 76, 0.24),
      0 0 42px rgba(255, 108, 68, 0.14),
      0 28px 78px rgba(0, 0, 0, 0.56);
  }
}

body.auth-login {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

body.auth-login .subtitle {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 500;
}

body.auth-reset .subtitle {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 500;
}

/* Inputs con icono */
.input-with-icon {
  position: relative;
}

.input-label {
  display: block;
  margin: 14px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  font-size: 15px;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

body.auth-login .login-container input {
  padding-left: 44px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.02);
}

body.auth-reset .login-container input {
  padding-left: 44px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.02);
}

body.auth-login .login-container input::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

body.auth-reset .login-container input::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

body.auth-login .login-container input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 77, 138, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 77, 138, 0.12);
}

body.auth-reset .login-container input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 77, 138, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 77, 138, 0.12);
}

body.auth-login .password-wrapper button {
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  box-shadow: none;
  width: auto;
  margin-top: 0;
  padding: 0;
}

.primary-cta {
  width: 100%;
  margin-top: 20px;
}

.link-row {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

body.auth-login .login-container a {
  color: #ff4d8a;
}

body.auth-reset .login-container a {
  color: #ff4d8a;
}

.login-trust {
  margin-top: 16px;
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
}

/* Footer de beneficios (desktop) */
.auth-footer { display: none; }

.auth-mobile-tagline {
  display: none;
}

.auth-mobile-trust {
  display: none;
}

.auth-footer-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(8, 9, 13, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.auth-footer-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.auth-footer-icon {
  font-size: 22px;
  line-height: 1;
  color: #ff4d8a;
  margin-top: 2px;
}

.auth-footer-title {
  font-weight: 800;
  font-size: 15px;
}

.auth-footer-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.auth-footer-note {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

/* =========================
   CONTENEDOR
========================= */
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 34px 28px;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(233, 30, 99, 0.2), 0 10px 20px rgba(0,0,0,0.05);
  animation: fadeIn 0.45s ease;
  max-height: 95vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Ocultar scrollbar opcional */
.login-container::-webkit-scrollbar {
  display: none;
}

/* =========================
   TITULO
========================= */
.login-container h1 {
  margin-bottom: 6px;
  font-size: 34px;
  text-align: center;
  color: #e91e63;
}

.login-container h2 {
  margin-bottom: 6px;
  font-size: 34px;
  text-align: center;
  color: #e91e63;
}

.brand-title {
  margin-bottom: 6px;
  font-size: 34px;
  text-align: center;
  color: #e91e63;
}
.greeting {
  margin: 0 0 4px 2px;
  text-align: left;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4a4a4a;
}

/* =========================
   SUBTITULO
========================= */
.subtitle {
  margin: 6px 0 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #555;
}

/* =========================
   INPUTS / SELECT
========================= */
.login-container input,
.login-container textarea,
.login-container select {
  width: 100%;
  padding: 16px 16px;
  margin-bottom: 10px;
  font-size: 15px;
  border-radius: 18px;
  border: 1px solid #eee;
  background: #fafafa;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* =========================
   TELÉFONO CON LADA
========================= */
.phone-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.phone-group #dial-prefix {
  min-width: 54px;
  text-align: center;
  padding: 12px 10px;
  border-radius: 18px;
  background: #f1f1f1;
  border: 1px solid #eee;
  font-weight: 700;
  color: #444;
}

.phone-group input {
  margin-bottom: 0;
}

/* PLACEHOLDER */
.login-container input::placeholder,
.login-container textarea::placeholder {
  color: #aaa;
  font-size: 14px;
}

/* FOCUS */
.login-container input:focus,
.login-container textarea:focus,
.login-container select:focus {
  background: #fff;
  border-color: #e91e63;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
}

/* INPUT ERROR (FORMULARIO) */
.input-error {
  border-color: #e53935 !important;
  background: #fff5f5;
}

/* =========================
   BOTÓN
========================= */
.login-container button {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff3e7f, #d91359);
  color: #fff;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(233, 30, 99, 0.32);
  transition: all 0.3s ease;
}

.login-container button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(233, 30, 99, 0.35);
}

.login-container button:active {
  transform: scale(0.98);
}

.login-container button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   TEXTO INFERIOR
========================= */
.login-container p {
  margin-top: 16px;
  text-align: center;
  font-size: 15px;
  color: #555;
}

.login-container a {
  color: #e91e63;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.login-container a:hover {
  text-decoration: underline;
}

/* =========================
   TEXTO LEGAL
========================= */
.legal {
  font-size: 12px;
  color: #777;
  margin: 8px 0;
  text-align: center;
  line-height: 1.5;
}

.legal a {
  color: #e91e63;
}

/* =========================
   CHECKBOX TÉRMINOS
========================= */
.terms-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
  flex-wrap: wrap; /* en móvil se ajusta */
}

.terms-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.terms-label span {
  flex: 1; /* ocupa el resto del espacio al lado del checkbox */
}

.terms-label a {
  color: #e91e63;
  text-decoration: underline;
}

/* =========================
   ERROR FORMULARIO (NO TOAST)
========================= */
.form-error,
.error {
  display: none;
  background: #ffe3e3;
  color: #c62828;
  border: 1px solid #ef9a9a;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 899px) {
  body.auth-login {
    min-height: 100svh;
    overflow: hidden;
  }

  .auth-shell {
    min-height: 100svh;
    align-content: center;
    padding: 10px 10px 14px;
    gap: 10px;
  }

  .login-container {
    margin-inline: auto;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .login-brand {
    font-size: 18px;
  }

  .auth-footer {
    display: none;
  }

  .auth-footer-card {
    grid-template-columns: 1fr;
  }

  .auth-footer-item {
    align-items: center;
  }

  .auth-social-proof {
    width: 100%;
    border-radius: 28px;
  }

  body.auth-register .auth-shell {
    min-height: 100svh;
    align-content: center;
    padding: 0 10px 10px;
  }

  body.auth-register .login-container {
    max-width: 100%;
    margin-inline: auto;
    min-height: calc(100svh - 20px);
    transform: translateY(-16px);
  }

  .register-actions {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
}

/* =========================
   MENSAJES TOAST
========================= */
.msg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 18px 26px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  min-width: 260px;
  max-width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  z-index: 99999;
  opacity: 1;
  animation: toastIn 0.35s ease;
}

/* ÉXITO */
.msg.toast-success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #ffffff;
}

/* ERROR */
.msg.toast-error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
}

/* INFO */
.msg.toast-info {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #ffffff;
}

/* Animación */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Verde */
.msg.success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* Rojo */
.msg.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.error-input {
  border: 2px solid red;
  background-color: #ffe6e6;
}

.success {
  display: none;
  background: #e0f8e9; 
  color: #2ecc71;      
  border: 1px solid #27ae60;
  padding: 12px;
  border-radius: 14px;
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}

.auth-success {
  background: rgba(46, 204, 113, 0.12);
  color: #7ef0aa;
  border: 1px solid rgba(46, 204, 113, 0.28);
}

/* =========================
   MODAL RECUPERACIÓN
========================= */
.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.72), rgba(7, 8, 12, 0.84));
  padding: 24px 14px;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.98), rgba(16, 18, 26, 0.96));
  margin: 4% auto;
  padding: 28px 24px 24px;
  border-radius: 28px;
  width: min(92vw, 420px);
  max-width: 420px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 77, 138, 0.22);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.modal-content p {
  margin-bottom: 18px;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

.modal-content input {
  width: 100%;
  padding: 15px 18px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  outline: none;
  font-size: 15px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.02);
}

.modal-content input::placeholder {
  color: rgba(255,255,255,0.44);
}

.modal-content input:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255, 77, 138, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 77, 138, 0.12);
}

.modal-content button {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff3e7f, #d91359);
  color: #fff;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(233, 30, 99, 0.32);
  transition: all 0.3s ease;
}

.modal-content button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-content .close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  font-weight: bold;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding: 14px 44px 14px 18px;
}

#togglePassword {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
}

#togglePassword:hover {
  opacity: 1;
}
/* =========================
   BOTÓN VER CONTRASEÑA (FIX)
========================= */
.password-wrapper button {
  all: unset;                
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #c2185b;
  opacity: 0.7;
}

.password-wrapper button:hover {
  opacity: 1;
}

/* Contratos táctiles y landscape móvil: mantener todo el formulario accesible. */
@media (max-width: 600px) {
  body.auth-login .input-with-icon,
  body.auth-login .login-container input,
  body.auth-register .login-container input,
  body.auth-register .login-container select {
    min-height: 44px;
  }

  body.auth-login .password-wrapper button {
    right: 2px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
  }

  body.auth-login .link-row a,
  body.auth-register .link-row a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 899px) and (max-height: 700px) and (orientation: landscape) {
  body.auth-login.auth-page {
    position: static;
    inset: auto;
    height: auto;
    min-height: 100dvh;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

  body.auth-login .auth-shell {
    height: auto;
    min-height: 100dvh;
    padding-top: max(16px, env(safe-area-inset-top, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  }

  body.auth-login .login-container {
    margin: 0 auto;
    max-height: none;
  }
}

/* Evita que Safari amplíe la página al enfocar los formularios de acceso. */
@media (max-width: 600px) {
  body.auth-login .login-container input,
  body.auth-login .login-container textarea,
  body.auth-login .login-container select,
  body.auth-register .login-container input:not([type="checkbox"]):not([type="radio"]),
  body.auth-register .login-container textarea,
  body.auth-register .login-container select {
    font-size: 16px;
  }
}

.login-container > form > button {
  width: 100%;
}

.legal-intro,
.legal-section p,
.legal-section li {
  font-size: 15px;
  color: #333;
}

.legal-section p {
  margin-bottom: 14px;
}

.legal-section ul {
  margin: 12px 0 16px 20px;
}

.legal-section li {
  margin-bottom: 8px;
}

h1 {
  font-size: 26px;
  margin-bottom: 18px;
}

.legal-section h3 {
  font-size: 17px;
  margin-bottom: 8px;
  margin-top: 22px;
  color: #111;
}

.legal-section {
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.legal-warning {
  background: #fff3cd;
  border-left: 4px solid #f0ad4e;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 14px;
}

/* =========================
   ANIMACIONES
========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* =========================
   PANTALLAS BAJAS / CELULAR
========================= */
@media (max-width: 480px), (max-height: 700px) {
  .login-container {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .login-container h1 {
    font-size: 24px;
  }

  .login-panel-head {
    margin-bottom: 12px;
  }

  .login-brand-icon {
    font-size: 28px;
  }

  .login-brand-name {
    font-size: 17px;
  }

  .login-overline {
    margin-top: 8px;
    font-size: 12px;
  }

  .subtitle {
    margin: 4px 0 10px;
    font-size: 12px;
  }

  .register-progress {
    margin: 4px 0 14px;
  }

  .register-progress-meta {
    margin-top: 8px;
    font-size: 12px;
  }

  .register-progress-meta strong {
    font-size: 13px;
  }

  .input-label {
    margin: 10px 0 8px;
    font-size: 13px;
  }

  .login-container input,
  .login-container textarea,
  .login-container select {
    padding: 11px 14px;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .login-container button {
    padding: 13px;
    margin-top: 12px;
  }

  .legal {
    font-size: 10.5px;
    margin: 6px 0;
  }

  .login-container p {
    font-size: 14px;
  }

  .link-row {
    margin-top: 10px;
    font-size: 14px;
  }

  .login-trust {
    margin-top: 12px;
    font-size: 11px;
  }

  .phone-group {
    gap: 8px;
    margin-bottom: 8px;
  }

  .phone-group #dial-prefix {
    min-width: 48px;
    padding: 11px 8px;
    border-radius: 16px;
  }

  body.auth-login .password-wrapper button {
    margin-top: 0;
    padding: 0;
  }

  body.auth-login .login-container {
    max-height: calc(100svh - 20px);
  }

  body.auth-register .login-container {
    transform: translateY(-24px);
  }

  /* Ajuste de checkbox y términos en móvil */
  .terms-label {
    font-size: 13px;
    gap: 6px;
    margin-bottom: 6px;
  }

  .terms-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
}

/* =========================
   AUTH COMPACTO EN MÓVIL
========================= */
@media (max-width: 600px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.auth-login.auth-page,
  body.auth-register.auth-page {
    margin-top: 0;
    align-items: flex-start;
    background-color: #090a0d;
    background-image:
      radial-gradient(circle at 50% 0%, rgba(255, 53, 124, 0.2), transparent 42%),
      radial-gradient(circle at 50% 108%, rgba(113, 57, 170, 0.24), transparent 52%),
      linear-gradient(180deg, #100912 0%, #090a0d 48%, #0d0912 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  body.auth-login.auth-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.auth-login.auth-page::before,
  body.auth-register.auth-page::before {
    background:
      radial-gradient(circle at 18% 18%, rgba(255, 77, 138, 0.12), transparent 28%),
      linear-gradient(180deg, rgba(5, 6, 10, 0.08), rgba(5, 6, 10, 0.34));
  }

  body.auth-login .auth-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    align-content: start;
    gap: 4px;
    padding:
      calc(clamp(26px, 6svh, 52px) + env(safe-area-inset-top, 0px) + 10px)
      20px
      26px;
  }

  body.auth-login.mobile-field-focused,
  body.auth-register.auth-page.mobile-field-focused {
    height: var(--auth-layout-height, 100dvh);
  }

  body.auth-login.mobile-field-focused .auth-shell,
  body.auth-register.auth-page.mobile-field-focused .auth-shell {
    height: var(--auth-layout-height, 100dvh);
    padding-top: var(--auth-shell-padding-top);
    top: var(--auth-visual-offset-y, 0px);
  }

  body.auth-register.auth-page.mobile-field-focused .auth-shell {
    align-content: start;
  }

  body.auth-register.auth-page.mobile-field-focused .vibas-login-logo--panel {
    --logo-size: var(--auth-register-logo-size, 76px);
  }

  body.auth-register.auth-page.mobile-field-focused .login-overline {
    font-size: var(--auth-register-overline-size, 0.75rem);
  }

  body.auth-reset.mobile-field-focused .auth-mobile-trust {
    display: none !important;
  }

  body.auth-login .login-container {
    max-height: none;
    overflow: visible;
  }

  body.auth-register .auth-shell {
    min-height: 100svh;
    align-content: start;
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px 28px;
  }

  body.auth-register .login-container {
    min-height: 0;
    transform: none;
    padding-top: 16px;
    padding-bottom: 18px;
  }

  body.auth-login .vibas-login-logo--panel {
    --logo-size: 90px;
  }

  body.auth-register .vibas-login-logo--panel {
    --logo-size: 90px;
  }

  body.auth-login .login-brand,
  body.auth-register .login-brand {
    margin-bottom: 8px;
  }

  body.auth-login .login-panel-head,
  body.auth-register .login-panel-head {
    margin-bottom: 14px;
  }

  body.auth-login .login-overline,
  body.auth-register .login-overline {
    margin-top: 0;
  }

  body.auth-register .register-progress {
    margin: 2px 0 12px;
  }

  body.auth-register .register-progress-meta {
    margin-top: 6px;
  }
}

@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  body.auth-login.login-success .vibas-login-logo {
    animation-name: vibas-logo-awaken-mobile;
  }

  body.auth-login.login-success .vibas-login-logo-image {
    transform: scale(1.08);
  }

  body.auth-login.login-success .vibas-login-logo-glow {
    transform: scale(1.68);
  }

  body.auth-login.login-success .vibas-login-logo-flame {
    transform: rotate(-10deg) scale(1.55);
    filter: blur(0.7px);
  }
}

@media (max-width: 600px) and (min-height: 700px) {
  body.auth-login .auth-mobile-tagline {
    display: block;
    justify-self: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold",
      "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
    font-size: clamp(1rem, 4.4vw, 1.18rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.035em;
    text-align: center;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  }

  body.auth-login .auth-mobile-tagline-line,
  body.auth-login .auth-mobile-tagline-accent {
    display: block;
  }

  body.auth-login .auth-mobile-tagline-sparkle {
    display: block;
    width: max-content;
    margin: 5px auto 2px;
    color: #ff6ca3;
    font-size: 0.62em;
    line-height: 1;
    text-shadow:
      0 0 12px rgba(255, 80, 145, 0.72),
      0 0 24px rgba(255, 80, 145, 0.38);
  }

  body.auth-login .auth-mobile-tagline-accent {
    display: inline-block;
    background: linear-gradient(135deg, #ff79aa 0%, #ff3f86 52%, #ff91b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 8px 18px rgba(255, 63, 134, 0.18));
  }

  body.auth-register .auth-mobile-trust,
  body.auth-reset .auth-mobile-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    justify-self: center;
    margin: 12px auto 0;
    list-style: none;
  }

  body.auth-register .auth-mobile-trust li,
  body.auth-reset .auth-mobile-trust li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(10, 11, 16, 0.58);
    color: rgba(255, 255, 255, 0.88);
    font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold",
      "Avenir Next", system-ui, sans-serif;
    font-size: clamp(0.76rem, 3vw, 0.88rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 10px 24px rgba(0, 0, 0, 0.2);
  }

  body.auth-register .auth-mobile-trust li span,
  body.auth-reset .auth-mobile-trust li span {
    color: #ff5f99;
    font-weight: 900;
    text-shadow: 0 0 12px rgba(255, 77, 138, 0.46);
  }
}

@media (max-width: 360px) and (min-height: 700px) {
  body.auth-register .auth-mobile-trust,
  body.auth-reset .auth-mobile-trust {
    width: calc(100vw - 20px);
    gap: 3px;
  }

  body.auth-register .auth-mobile-trust li,
  body.auth-reset .auth-mobile-trust li {
    min-height: 36px;
    gap: 3px;
    padding: 7px 6px;
    font-size: 0.66rem;
    letter-spacing: -0.01em;
  }
}

/* =========================
   FIX MÓVIL: INPUTS / PASSWORD
========================= */

/* Quitar highlight nativo al tocar */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
}

/* Quitar fondo al seleccionar texto */
::selection {
  background: transparent;
  color: inherit;
}

::-moz-selection {
  background: transparent;
  color: inherit;
}

/* Fix específico iOS al cambiar password ↔ text */
input[type="password"],
input[type="text"] {
  background-clip: padding-box;
  -webkit-text-fill-color: #333;
}

/* Botón mostrar contraseña (👁️) */
.password-wrapper button {
  all: unset;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #c2185b;
  opacity: 0.7;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Estado activo (cuando se presiona) */
.password-wrapper button:active {
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 1;
}

/* Hover desktop */
.password-wrapper button:hover {
  opacity: 1;
}

/* Debe permanecer al final: prevalece sobre las reglas móviles de pantalla fija. */
@media (max-width: 899px) and (max-height: 700px) and (orientation: landscape) {
  body.auth-login.auth-page {
    position: static;
    inset: auto;
    height: auto;
    min-height: 100dvh;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

  body.auth-login .auth-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: max(16px, env(safe-area-inset-top, 0px)) 20px
      max(20px, env(safe-area-inset-bottom, 0px));
  }

  body.auth-login .login-container,
  body.auth-login .login-panel {
    height: auto;
    min-height: max-content;
    max-height: none;
    overflow: visible;
  }

  body.auth-login .login-container {
    margin: 0 auto;
  }
}

/* Debe permanecer al final: registro móvil en un solo viewport. */
@media (max-width: 600px) {
  body.auth-register.auth-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.auth-register .auth-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 10px;
    padding:
      max(8px, env(safe-area-inset-top, 0px))
      10px
      max(8px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }

  body.auth-register .login-container {
    height: auto;
    min-height: 0;
    max-height: 100%;
    padding: 12px 16px;
    overflow: hidden;
  }

  body.auth-register .vibas-login-logo--panel {
    --logo-size: clamp(62px, 10dvh, 76px);
  }

  body.auth-register .login-brand {
    margin-bottom: 4px;
  }

  body.auth-register .login-panel-head {
    margin-bottom: 8px;
  }

  body.auth-register .register-progress {
    margin: 0 0 8px;
  }

  body.auth-register .register-progress-meta {
    margin-top: 5px;
  }

  body.auth-register .input-label {
    margin: 6px 0 5px;
  }

  body.auth-register .login-container input,
  body.auth-register .login-container select {
    margin-bottom: 6px;
    padding-block: 10px;
  }

  body.auth-register .phone-group {
    margin-bottom: 4px;
  }

  body.auth-register .register-legal {
    margin: 5px 0 0;
  }

  body.auth-register .register-state-message {
    margin-top: 5px;
    font-size: 0.76rem;
  }

  body.auth-register .terms-label {
    margin-bottom: 0;
    font-size: 0.76rem;
    line-height: 1.28;
  }

  body.auth-register .register-actions {
    grid-template-columns: 1fr 1.35fr;
    gap: 8px;
    margin-top: 8px;
  }

  body.auth-register .register-actions button {
    min-height: 44px;
    margin-top: 0;
    padding: 10px;
  }

  body.auth-register #registerPrevBtn[hidden] + #registerNextBtn {
    grid-column: 1 / -1;
  }

  body.auth-register .link-row {
    margin-top: 6px;
  }

  body.auth-register .link-row a {
    min-height: 36px;
  }

  body.auth-register .auth-mobile-trust,
  body.auth-reset .auth-mobile-trust {
    margin: 4px auto 0;
  }
}

@media (max-width: 600px) and (max-height: 700px) {
  body.auth-register .vibas-login-logo--panel {
    --logo-size: 56px;
  }

  body.auth-register .login-overline {
    font-size: 0.72rem;
  }

  body.auth-register .auth-mobile-trust,
  body.auth-reset .auth-mobile-trust {
    display: none !important;
  }
}

/* iPhone/iOS: el control nativo date impone un ancho intrínseco al tener valor. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 600px) {
    body.auth-register #birthdate[type="date"] {
      display: block;
      width: 100%;
      min-width: 0;
      max-width: 100%;
      inline-size: 100%;
      min-inline-size: 0;
      max-inline-size: 100%;
      -webkit-appearance: none;
      appearance: none;
    }

    body.auth-register #birthdate[type="date"]::-webkit-date-and-time-value {
      min-width: 0;
      text-align: left;
    }
  }
}
