/* ── Auth cliente: login + registro ── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

.auth-panel-body {
  --auth-accent: #80bf28;
  --auth-accent-hover: #96d032;
  --auth-accent-glow: rgba(150, 208, 50, 0.35);
  --auth-border: rgba(150, 208, 50, 0.32);
  --auth-card-bg: rgba(12, 22, 16, 0.72);
  --auth-text: #f0f7e6;
  --auth-text-soft: rgba(240, 247, 230, 0.72);
  --auth-input-bg: rgba(255, 255, 255, 0.07);
  --auth-input-border: rgba(150, 208, 50, 0.22);

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  margin: 0;
  font-family: 'Outfit', sans-serif;
  color: var(--auth-text);
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.auth-panel-body--ambient {
  background: #050a08;
}

.auth-panel-body:not(.auth-panel-body--ambient) {
  background: #0a0f0d;
}

.customer-auth-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.customer-auth-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 15% 20%, rgba(128, 191, 40, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 75%, rgba(18, 54, 77, 0.55) 0%, transparent 52%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(150, 208, 50, 0.14) 0%, transparent 50%),
    linear-gradient(165deg, #07131d 0%, #0a1810 38%, #050a08 72%, #030605 100%);
}

.customer-auth-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.customer-auth-leaves {
  position: absolute;
  inset: -8% -5%;
  opacity: 0.55;
  filter: blur(0.3px) saturate(1.15);
}

.customer-auth-leaves .real-leaf {
  opacity: calc(var(--leaf-base-op, 0.65) * 0.9);
}

.auth-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: min(100%, clamp(18.5rem, 92vw, 32.5rem));
  max-width: none;
  padding: clamp(1.6rem, 4vw, 2.35rem) clamp(1.35rem, 4vw, 2rem) clamp(1.5rem, 3.5vw, 2rem);
  border-radius: clamp(18px, 3vw, 24px);
  border: 2.5px solid rgba(160, 220, 70, 0.5);
  background: var(--auth-card-bg);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 0 42px rgba(150, 208, 50, 0.16),
    0 0 1px rgba(210, 245, 120, 0.28);
  box-sizing: border-box;
}

.auth-panel-body--ambient .auth-card::after,
.customer-auth-page .auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(220, 250, 160, 0.14);
}

.auth-panel-body--ambient .auth-card {
  background: linear-gradient(
    165deg,
    rgba(16, 30, 20, 0.88) 0%,
    rgba(10, 20, 14, 0.82) 100%
  );
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.auth-logo-wrap img {
  max-width: min(260px, 72vw);
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.auth-kicker {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auth-accent-hover);
}

.auth-title {
  margin: 0 0 0.55rem;
  text-align: center;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(1.35rem, 4.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--auth-text);
}

.auth-title em {
  font-style: normal;
  color: var(--auth-accent-hover);
}

.auth-subtitle {
  margin: 0 0 1.15rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--auth-text-soft);
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(150, 208, 50, 0.28);
  background: rgba(150, 208, 50, 0.1);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(240, 247, 230, 0.9);
  white-space: nowrap;
}

.auth-benefits li::before {
  content: "✦";
  font-size: 0.55rem;
  color: var(--auth-accent-hover);
}

.auth-field {
  margin-bottom: 0.95rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(195, 220, 170, 0.82);
}

.auth-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.38rem;
}

.auth-field__head label {
  margin-bottom: 0;
}

.auth-field__link {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #c8f050;
  text-decoration: none;
  white-space: nowrap;
}

.auth-field__link:hover {
  color: #e4ff88;
  text-decoration: underline;
}

.auth-otp-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: rgba(195, 220, 170, 0.72);
}

/* ── Registro por pasos ── */

.auth-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}

.auth-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1.5px solid rgba(150, 208, 50, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(210, 240, 150, 0.6);
  font-size: 0.82rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.auth-step-dot.is-active {
  border-color: #96d032;
  background: rgba(150, 208, 50, 0.22);
  color: #eaffc0;
  box-shadow: 0 0 14px rgba(150, 208, 50, 0.25);
}

.auth-step-line {
  width: 2.5rem;
  height: 2px;
  background: rgba(150, 208, 50, 0.22);
}

.auth-form--registro .auth-step {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.auth-form--registro .auth-step[hidden] {
  display: none !important;
}

.auth-step--personal {
  grid-template-columns: 1fr;
}

.auth-step--personal .auth-field:not(.auth-field--full) {
  width: 100%;
}

.auth-step--cuenta {
  grid-template-columns: 1fr;
}

.auth-step__submit {
  margin-top: 0.35rem;
}

@media (min-width: 520px) {
  .auth-step--personal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .auth-step--personal .auth-field--full,
  .auth-step--personal .auth-step__submit {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .auth-step--cuenta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .auth-step--cuenta .auth-field--full,
  .auth-step--cuenta .auth-step-actions {
    grid-column: 1 / -1;
  }
}

.auth-step-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
  width: 100%;
}

.auth-step-actions--full {
  grid-column: 1 / -1;
}

.auth-step-actions .auth-btn {
  margin-top: 0;
  flex: 1 1 auto;
}

.auth-btn--ghost {
  flex: 0 0 auto;
  min-width: 6.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(210, 240, 150, 0.9);
  border: 1.5px solid rgba(150, 208, 50, 0.3);
  box-shadow: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.auth-btn--ghost:hover {
  background: rgba(150, 208, 50, 0.12);
  filter: none;
  box-shadow: none;
}

.auth-field-error {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.76rem;
  color: #ff8a84;
  min-height: 0;
}

.auth-field--invalid input {
  border-color: rgba(248, 81, 73, 0.55) !important;
}

/* ── Submodal verificación de correo ── */

.auth-otp-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  min-height: 100dvh;
  box-sizing: border-box;
}

.auth-otp-modal[hidden] {
  display: none !important;
}

.auth-otp-modal--loading {
  z-index: 3010;
}

.auth-otp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 5, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-otp-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 22.5rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  margin: auto;
  padding: 1.75rem 1.35rem 1.35rem;
  border-radius: 22px;
  border: 2px solid rgba(170, 225, 80, 0.55);
  background: linear-gradient(168deg, rgba(22, 38, 26, 0.99) 0%, rgba(8, 16, 11, 0.98) 100%);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(150, 208, 50, 0.12) inset,
    0 0 48px rgba(150, 208, 50, 0.2);
  text-align: center;
  animation: authOtpPop 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-otp-modal__card--loading {
  width: min(100%, 18rem);
  padding: 2rem 1.5rem 1.75rem;
}

.auth-otp-modal__spinner {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(150, 208, 50, 0.22);
  border-top-color: #c8f050;
  animation: authOtpSpin 0.75s linear infinite;
}

@keyframes authOtpSpin {
  to { transform: rotate(360deg); }
}

@keyframes authOtpPop {
  from { transform: translateY(12px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.auth-otp-modal__x {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  color: rgba(210, 240, 150, 0.7);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.auth-otp-modal__x:hover {
  color: #eaffc0;
}

.auth-otp-modal__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(150, 208, 50, 0.14);
  color: #c8f050;
}

.auth-otp-modal__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.auth-otp-modal__title {
  margin: 0 0 0.5rem;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f4fbe8;
}

.auth-otp-modal__text {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(232, 245, 218, 0.85);
}

.auth-otp-modal__text strong {
  color: #c8f050;
  word-break: break-all;
}

.auth-otp-modal__ttl {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(200, 240, 80, 0.75);
}

.auth-otp-modal__label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(210, 235, 170, 0.82);
  text-align: left;
}

.auth-otp-modal .auth-input-wrap--otp {
  margin-bottom: 1rem;
}

.auth-otp-modal .auth-otp-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(6, 14, 10, 0.72);
  border: 1.5px solid rgba(150, 208, 50, 0.4);
  border-radius: 14px;
  color: #f4fbe8;
  padding: 0.95rem 1rem !important;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
}

.auth-btn--modal {
  width: 100%;
  margin-top: 0.15rem;
}

.auth-otp-modal .auth-otp-input:focus {
  border-color: #96d032;
  box-shadow: 0 0 0 3px rgba(150, 208, 50, 0.28);
  outline: none;
}

.auth-otp-modal__resend {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(150, 208, 50, 0.16);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.auth-otp-modal__action {
  flex: 1 1 0;
  min-width: 0;
  max-width: 8.25rem;
  margin: 0;
  padding: 0.58rem 0.45rem;
  border-radius: 11px;
  border: 1px solid rgba(150, 208, 50, 0.3);
  background: rgba(150, 208, 50, 0.08);
  color: rgba(210, 240, 150, 0.94);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.auth-otp-modal__action:hover:not(:disabled) {
  color: #e8ffc8;
  border-color: rgba(180, 230, 80, 0.45);
  background: rgba(150, 208, 50, 0.14);
}

.auth-otp-modal__action--back {
  border-color: rgba(150, 208, 50, 0.38);
}

.auth-otp-modal__action--resend:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap--password input {
  padding-right: 3.1rem !important;
}

.auth-password-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(150, 208, 50, 0.28);
  border-radius: 10px;
  background: rgba(6, 14, 10, 0.85);
  color: rgba(200, 240, 150, 0.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.auth-password-toggle:hover {
  border-color: rgba(150, 208, 50, 0.5);
  color: #eaffc0;
  background: rgba(150, 208, 50, 0.12);
}

.auth-password-toggle.is-active .auth-password-toggle__show {
  display: none;
}

.auth-password-toggle:not(.is-active) .auth-password-toggle__hide {
  display: none;
}

.auth-password-toggle.is-active .auth-password-toggle__hide {
  display: block;
}

.auth-input-icon {
  position: absolute;
  left: 0.9rem;
  width: 1.05rem;
  height: 1.05rem;
  color: rgba(150, 208, 50, 0.75);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-input-icon svg {
  width: 100%;
  height: 100%;
}

.auth-field input {
  width: 100%;
  padding: 0.82rem 0.95rem 0.82rem 2.65rem;
  border-radius: 14px;
  border: 1.5px solid var(--auth-input-border);
  background: var(--auth-input-bg);
  color: var(--auth-text);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.auth-field input::placeholder {
  color: rgba(195, 220, 170, 0.42);
}

.auth-field input:hover {
  border-color: rgba(150, 208, 50, 0.38);
  background: rgba(255, 255, 255, 0.09);
}

.auth-field input:focus {
  border-color: var(--auth-accent);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 3px var(--auth-accent-glow);
}

.auth-btn {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.88rem 1rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #96d032 0%, #7cb824 100%);
  color: #1a2612;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(150, 208, 50, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(150, 208, 50, 0.42);
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-msg-error {
  margin-bottom: 1rem;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 81, 73, 0.35);
  background: rgba(248, 81, 73, 0.12);
  color: #ff8a84;
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-msg-success {
  margin-bottom: 1rem;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(150, 208, 50, 0.35);
  background: rgba(150, 208, 50, 0.12);
  color: #d4ff66;
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-form--otp {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-input-wrap--otp {
  justify-content: center;
}

.auth-otp-input {
  width: 100%;
  text-align: center;
  letter-spacing: 0.32em;
  font-size: 1.35rem !important;
  font-weight: 800;
  font-family: Consolas, Monaco, monospace;
  text-transform: uppercase;
  padding-left: 1rem !important;
}

.auth-footer-nav--stack {
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.auth-inline-form {
  margin: 0;
}

.auth-footer-nav__link--button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.auth-footer-nav__link--button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.auth-footer-nav--split {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.65rem;
}

.auth-footer-nav--split .auth-footer-nav__link {
  flex: 1 1 calc(50% - 0.35rem);
  min-width: 9.5rem;
  justify-content: center;
  text-align: center;
}

.auth-footer-nav__link--ghost {
  border-color: rgba(150, 208, 50, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(210, 240, 150, 0.82);
}

.auth-footer-links {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(150, 208, 50, 0.16);
}

.auth-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.auth-footer-nav__hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--auth-text-soft);
  line-height: 1.4;
}

.auth-footer-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(150, 208, 50, 0.22);
  background: rgba(150, 208, 50, 0.06);
  color: rgba(210, 240, 150, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.auth-footer-nav__link:hover {
  color: #e8ffc8;
  border-color: rgba(180, 230, 80, 0.42);
  background: rgba(150, 208, 50, 0.12);
  box-shadow: 0 0 18px rgba(150, 208, 50, 0.12);
  text-decoration: none;
}

.auth-footer-nav__link--primary {
  border-color: rgba(150, 208, 50, 0.38);
  background: rgba(150, 208, 50, 0.14);
  color: #d8f868;
  font-weight: 700;
}

.auth-footer-nav__link--primary:hover {
  color: #eeffaa;
  border-color: rgba(190, 240, 90, 0.55);
  background: rgba(150, 208, 50, 0.2);
  box-shadow: 0 0 22px rgba(150, 208, 50, 0.18);
}

.auth-points-note {
  margin-top: 1.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(150, 208, 50, 0.22);
  background: rgba(150, 208, 50, 0.08);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--auth-text-soft);
}

.auth-points-note strong {
  color: var(--auth-accent-hover);
}

/* ── Registro dentro del shell cliente ── */

.customer-auth-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding:
    clamp(1rem, 7dvh, 2.5rem)
    clamp(0.85rem, 3vw, 1.25rem)
    clamp(1rem, 3vh, 1.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  background: #050a08;
  box-sizing: border-box;
}

.customer-auth-page .auth-card {
  z-index: 2;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
}

/* ── Aislar auth del shell cliente (customer_v2 pisa inputs/títulos) ── */

body.customer-page-registro,
body.customer-page-auth {
  background: #050a08 !important;
  color: #f0f7e6;
}

body.customer-page-registro .customer-header,
body.customer-page-registro .bottom-nav,
body.customer-page-registro .customer-site-footer,
body.customer-page-auth .customer-header,
body.customer-page-auth .bottom-nav,
body.customer-page-auth .customer-site-footer,
body.customer-page-auth .customer-help-chat {
  display: none !important;
}

body.customer-page-registro .customer-main,
body.customer-page-auth .customer-main {
  min-height: 100dvh;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

body.customer-page-auth .customer-app-shell {
  display: flex;
  flex-direction: column;
  padding-top: 0 !important;
  min-height: 100dvh;
}

body.customer-page-auth .customer-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

body.customer-page-auth .customer-main-panel--registro,
body.customer-page-auth .customer-main-panel--auth,
body.customer-page-auth .customer-main-panel[data-page="registro"],
body.customer-page-auth .customer-main-panel[data-page="recuperar"],
body.customer-page-auth .customer-main-panel[data-page="recuperar-nueva"] {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

body.customer-page-auth .customer-main-panel--auth,
body.customer-page-auth .customer-main-panel[data-page="recuperar"],
body.customer-page-auth .customer-main-panel[data-page="recuperar-nueva"] {
  min-height: 100dvh;
}

body.customer-page-auth .customer-auth-page {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding:
    max(0.85rem, env(safe-area-inset-top))
    clamp(0.85rem, 3vw, 1.25rem)
    clamp(1rem, 4vh, 1.75rem);
  padding-top: clamp(1.25rem, 7dvh, 2.75rem);
  box-sizing: border-box;
}

body.customer-page-auth .customer-auth-page--center {
  position: relative;
  display: grid !important;
  place-items: center;
  align-content: center;
  justify-content: center !important;
  flex: 1 1 auto;
  min-height: 100dvh !important;
  padding:
    max(0.85rem, env(safe-area-inset-top))
    clamp(0.85rem, 3vw, 1.25rem)
    max(0.85rem, env(safe-area-inset-bottom)) !important;
}

body.customer-page-auth .customer-auth-page--center .customer-auth-ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.customer-page-auth .customer-auth-page--center .auth-card {
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.customer-auth-page .customer-auth-ambient {
  z-index: 0;
}

body.customer-page-registro .customer-auth-page .auth-title,
body.customer-page-auth .customer-auth-page .auth-title {
  color: #f4fbe8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

body.customer-page-registro .customer-auth-page .auth-title em,
body.customer-page-auth .customer-auth-page .auth-title em {
  color: #c8f050;
  text-shadow: 0 0 24px rgba(150, 208, 50, 0.35);
}

body.customer-page-registro .customer-auth-page .auth-kicker,
body.customer-page-auth .customer-auth-page .auth-kicker {
  color: #b8e050;
}

body.customer-page-registro .customer-auth-page .auth-subtitle,
body.customer-page-auth .customer-auth-page .auth-subtitle {
  color: rgba(232, 245, 218, 0.88);
}

body.customer-page-registro .customer-auth-page .auth-field label,
body.customer-page-auth .customer-auth-page .auth-field label {
  color: rgba(210, 235, 185, 0.92);
}

body.customer-page-registro .customer-auth-page .auth-form input,
body.customer-page-registro .customer-auth-page .auth-field input,
body.customer-page-auth .customer-auth-page .auth-form input,
body.customer-page-auth .customer-auth-page .auth-field input {
  background: rgba(6, 14, 10, 0.72) !important;
  border: 1.5px solid rgba(150, 208, 50, 0.38) !important;
  color: #f4fbe8 !important;
  padding: 0.88rem 1rem 0.88rem 2.75rem !important;
  border-radius: 14px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.22) !important;
}

body.customer-page-registro .customer-auth-page .auth-form input::placeholder,
body.customer-page-registro .customer-auth-page .auth-field input::placeholder,
body.customer-page-auth .customer-auth-page .auth-form input::placeholder,
body.customer-page-auth .customer-auth-page .auth-field input::placeholder {
  color: rgba(195, 220, 170, 0.48) !important;
}

body.customer-page-registro .customer-auth-page .auth-form input:hover,
body.customer-page-registro .customer-auth-page .auth-field input:hover,
body.customer-page-auth .customer-auth-page .auth-form input:hover,
body.customer-page-auth .customer-auth-page .auth-field input:hover {
  border-color: rgba(180, 230, 80, 0.55) !important;
  background: rgba(10, 20, 14, 0.82) !important;
}

body.customer-page-registro .customer-auth-page .auth-form input:focus,
body.customer-page-registro .customer-auth-page .auth-field input:focus,
body.customer-page-auth .customer-auth-page .auth-form input:focus,
body.customer-page-auth .customer-auth-page .auth-field input:focus {
  border-color: #96d032 !important;
  background: rgba(12, 24, 16, 0.92) !important;
  box-shadow:
    0 0 0 3px rgba(150, 208, 50, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  outline: none !important;
}

.auth-card--registro {
  width: min(100%, clamp(17rem, 92vw, 26rem));
  padding: clamp(1.1rem, 3vw, 1.65rem) clamp(1rem, 3.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.35rem);
  background: linear-gradient(
    168deg,
    rgba(22, 38, 26, 0.94) 0%,
    rgba(12, 22, 16, 0.9) 55%,
    rgba(8, 16, 12, 0.92) 100%
  ) !important;
  border: 2.5px solid rgba(170, 225, 80, 0.55) !important;
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 48px rgba(150, 208, 50, 0.2),
    0 0 1px rgba(210, 245, 120, 0.32) !important;
}

.auth-card--registro .auth-logo-wrap {
  margin-bottom: 0.65rem;
}

.auth-card--registro .auth-logo-wrap img {
  max-width: min(168px, 58vw);
}

.auth-card--registro .auth-title {
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  margin-bottom: 0.35rem;
}

.auth-card--registro .auth-subtitle {
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.auth-card--registro .auth-kicker {
  font-size: 0.68rem;
  margin-bottom: 0.35rem;
}

.auth-benefits--registro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.auth-benefits--registro li {
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0.3rem;
  border-radius: 10px;
  font-size: 0.62rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  background: rgba(150, 208, 50, 0.12);
  border-color: rgba(150, 208, 50, 0.32);
}

.auth-steps-indicator {
  margin-bottom: 0.85rem;
}

.auth-card--registro .auth-field {
  margin-bottom: 0.62rem;
}

.auth-card--registro .auth-btn {
  margin-top: 0.35rem;
  padding: 0.78rem 0.9rem;
  font-size: 0.92rem;
}

.auth-benefits--registro li::before {
  content: "✓";
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #c8f050;
  margin-bottom: 0.1rem;
}

.auth-form--registro .auth-field--full {
  grid-column: 1 / -1;
}

.auth-points-note--compact {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.72rem 0.85rem;
  background: rgba(150, 208, 50, 0.1);
  border-color: rgba(150, 208, 50, 0.28);
}

.auth-points-note--compact p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(228, 242, 210, 0.88);
}

.auth-points-note__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  background: rgba(150, 208, 50, 0.22);
  color: #d4f060;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customer-auth-page .customer-auth-leaves {
  opacity: 0.62;
}

.customer-auth-page .customer-auth-gradient {
  background:
    radial-gradient(ellipse 90% 60% at 20% 15%, rgba(128, 191, 40, 0.32) 0%, transparent 58%),
    radial-gradient(ellipse 75% 55% at 85% 80%, rgba(18, 54, 77, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(150, 208, 50, 0.08) 0%, transparent 70%),
    linear-gradient(165deg, #07131d 0%, #0a1810 40%, #050a08 100%);
}

@media (max-width: 380px) {
  .auth-benefits--registro {
    grid-template-columns: 1fr;
  }

  .auth-benefits--registro li {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-auth-leaves .real-leaf {
    animation: none !important;
  }
}

/* ── Login staff: admin + POS ── */

.auth-panel-body--admin,
.auth-panel-body--pos {
  --auth-text: #eef6f0;
  --auth-text-soft: rgba(238, 246, 240, 0.72);
  --auth-card-bg: rgba(10, 18, 14, 0.82);
  --auth-input-bg: rgba(255, 255, 255, 0.06);
  --auth-input-border: color-mix(in srgb, var(--auth-accent) 28%, transparent);
}

.auth-panel-body--admin {
  --auth-text: #e8f2f4;
  --auth-text-soft: rgba(200, 222, 228, 0.74);
  --auth-card-bg: rgba(6, 16, 22, 0.9);
  --auth-input-bg: rgba(255, 255, 255, 0.05);
  --auth-input-border: rgba(42, 120, 115, 0.3);
  background: #030810;
}

.auth-panel-body--pos {
  background: #0a0804;
}

.customer-auth-ambient--admin .customer-auth-gradient {
  background:
    radial-gradient(ellipse 78% 58% at 10% 15%, rgba(18, 72, 88, 0.32) 0%, transparent 56%),
    radial-gradient(ellipse 68% 52% at 92% 80%, rgba(12, 48, 78, 0.48) 0%, transparent 54%),
    radial-gradient(ellipse 55% 42% at 48% 100%, rgba(14, 58, 68, 0.18) 0%, transparent 52%),
    linear-gradient(168deg, #020608 0%, #041018 32%, #061a24 58%, #051520 82%, #030810 100%);
}

.customer-auth-ambient--pos .customer-auth-gradient {
  background:
    radial-gradient(ellipse 80% 55% at 85% 15%, rgba(230, 180, 34, 0.26) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 85%, rgba(180, 90, 20, 0.35) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(230, 180, 34, 0.08) 0%, transparent 60%),
    linear-gradient(165deg, #120e06 0%, #1a1408 38%, #0a0804 100%);
}

.auth-panel-body--admin .customer-auth-leaves,
.auth-panel-body--pos .customer-auth-leaves {
  opacity: 0.58;
  filter: blur(0.3px) saturate(1.1);
}

.auth-panel-body--admin .customer-auth-leaves .real-leaf {
  opacity: calc(var(--leaf-base-op, 0.65) * 0.72);
  filter: sepia(0.25) hue-rotate(145deg) saturate(0.75) brightness(0.78);
}

.auth-panel-body--pos .customer-auth-leaves .real-leaf {
  opacity: calc(var(--leaf-base-op, 0.65) * 0.8);
  filter: sepia(0.35) hue-rotate(-15deg) saturate(1.15);
}

.auth-card--admin,
.auth-card--pos {
  width: min(100%, clamp(18.5rem, 90vw, 34rem));
  border-color: var(--auth-border);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 42px color-mix(in srgb, var(--auth-accent) 18%, transparent);
}

.auth-card--admin {
  background: linear-gradient(
    168deg,
    rgba(8, 24, 32, 0.96) 0%,
    rgba(5, 16, 24, 0.92) 100%
  );
  border-color: rgba(42, 125, 118, 0.55);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 48px rgba(18, 72, 88, 0.18);
}

.auth-panel-body--admin.auth-panel-body--ambient .auth-card::after {
  box-shadow: inset 0 1px 0 rgba(100, 190, 185, 0.14);
}

.auth-panel-body--admin .auth-kicker {
  color: #5ec4ba;
}

.auth-panel-body--admin .auth-card--admin .auth-title em {
  color: #6dd4c8;
  text-shadow: 0 0 24px rgba(42, 143, 138, 0.38);
}

.auth-panel-body--admin .auth-field label {
  color: rgba(160, 210, 215, 0.88);
}

.auth-panel-body--admin .auth-input-icon {
  color: rgba(62, 160, 152, 0.88);
}

.auth-panel-body--admin .auth-password-toggle {
  border-color: rgba(42, 120, 115, 0.38);
  background: rgba(6, 20, 26, 0.88);
  color: rgba(94, 196, 186, 0.92);
}

.auth-panel-body--admin .auth-password-toggle:hover {
  border-color: rgba(69, 189, 176, 0.55);
  color: #6dd4c8;
  background: rgba(42, 143, 138, 0.16);
}

.auth-panel-body--admin .auth-password-toggle:focus-visible {
  outline: 2px solid rgba(42, 143, 138, 0.72);
  outline-offset: 2px;
}

.auth-panel-body--admin .auth-field input::placeholder {
  color: rgba(140, 190, 195, 0.42);
}

.auth-panel-body--admin .auth-field input:hover {
  border-color: rgba(42, 120, 115, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.auth-panel-body--admin .auth-field input:focus {
  border-color: var(--auth-accent);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(42, 143, 138, 0.28);
}

.auth-panel-body--admin .auth-benefits--staff li {
  border-color: rgba(42, 120, 115, 0.38);
  background: rgba(12, 48, 55, 0.55);
  color: rgba(210, 235, 238, 0.94);
}

.auth-panel-body--admin .auth-benefits--staff li::before {
  color: #5ec4ba;
}

.auth-panel-body--admin .auth-btn--admin {
  background: linear-gradient(180deg, #45bdb0 0%, #238f86 100%);
  color: #041018;
  box-shadow: 0 8px 24px rgba(42, 143, 138, 0.38);
}

.auth-panel-body--admin .auth-btn--admin:hover {
  box-shadow: 0 10px 28px rgba(42, 143, 138, 0.48);
}

.auth-panel-body--admin .auth-staff-notice {
  border-color: rgba(42, 120, 115, 0.32);
  background: rgba(10, 36, 44, 0.55);
}

.auth-panel-body--admin .auth-staff-notice__icon {
  color: #5ec4ba;
}

.auth-panel-body--admin .auth-staff-notice p {
  color: rgba(190, 218, 222, 0.82);
}

.auth-card--pos {
  background: linear-gradient(
    168deg,
    color-mix(in srgb, var(--auth-accent) 8%, rgba(12, 20, 16, 0.92)) 0%,
    rgba(8, 14, 11, 0.88) 100%
  );
}

.auth-card--pos .auth-title em {
  color: var(--auth-accent-hover);
  text-shadow: 0 0 24px color-mix(in srgb, var(--auth-accent) 35%, transparent);
}

.auth-benefits--staff {
  margin-bottom: 1.25rem;
}

.auth-benefits--staff li {
  border-color: color-mix(in srgb, var(--auth-accent) 32%, transparent);
  background: color-mix(in srgb, var(--auth-accent) 10%, transparent);
}

.auth-benefits--staff li::before {
  content: "◆";
  color: var(--auth-accent-hover);
}

.auth-btn--admin {
  background: linear-gradient(180deg, var(--auth-accent-hover) 0%, var(--auth-accent) 100%);
  color: #0a120c;
  box-shadow: 0 8px 24px var(--auth-accent-glow);
}

.auth-btn--pos {
  background: linear-gradient(180deg, var(--auth-accent-hover) 0%, #c89410 100%);
  color: #1a1206;
  box-shadow: 0 8px 24px var(--auth-accent-glow);
}

.auth-btn--admin:hover,
.auth-btn--pos:hover {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--auth-accent) 45%, transparent);
}

.auth-staff-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--auth-accent) 22%, transparent);
  background: color-mix(in srgb, var(--auth-accent) 6%, transparent);
}

.auth-staff-notice__icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  color: var(--auth-accent-hover);
}

.auth-staff-notice__icon svg {
  width: 100%;
  height: 100%;
}

.auth-staff-notice p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--auth-text-soft);
}

.auth-panel-body--admin .auth-footer-nav__link,
.auth-panel-body--pos .auth-footer-nav__link {
  border-color: color-mix(in srgb, var(--auth-accent) 24%, transparent);
  background: color-mix(in srgb, var(--auth-accent) 5%, transparent);
  color: color-mix(in srgb, var(--auth-accent-hover) 85%, white);
}

.auth-panel-body--admin .auth-footer-nav__link:hover,
.auth-panel-body--pos .auth-footer-nav__link:hover {
  border-color: color-mix(in srgb, var(--auth-accent) 42%, transparent);
  background: color-mix(in srgb, var(--auth-accent) 12%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--auth-accent) 14%, transparent);
}

.auth-panel-body--admin .auth-field input:focus,
.auth-panel-body--pos .auth-field input:focus {
  box-shadow: 0 0 0 3px var(--auth-accent-glow);
}

@media (max-width: 480px) {
  .auth-footer-nav--split {
    flex-direction: column;
  }

  .auth-footer-nav--split .auth-footer-nav__link {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .auth-field__head {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .auth-benefits--staff {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-benefits--staff li {
    justify-content: center;
  }
}

/* ── Auth responsive: tablets y desktop ── */

@media (min-width: 640px) {
  .auth-panel-body:not(.auth-panel-body--admin):not(.auth-panel-body--pos):not(.auth-panel-body--cliente),
  .customer-auth-page:not(.customer-auth-page--center) {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding:
      clamp(1.25rem, 7dvh, 2.5rem)
      clamp(1rem, 4vw, 2rem)
      clamp(1.25rem, 4vh, 2rem);
  }

  .auth-panel-body--admin,
  .auth-panel-body--pos,
  .auth-panel-body--cliente {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding:
      clamp(1.25rem, 4vh, 2.5rem)
      clamp(1.25rem, 5vw, 3rem);
  }

  .auth-card {
    width: min(100%, clamp(22rem, 78vw, 34rem));
    padding: clamp(1.85rem, 3.5vw, 2.5rem) clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.65rem, 3vw, 2.15rem);
  }

  .auth-title {
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  }

  .auth-subtitle {
    font-size: clamp(0.94rem, 1.4vw, 1.02rem);
    margin-bottom: 1.35rem;
  }

  .auth-field input {
    padding: 0.88rem 1rem 0.88rem 2.75rem;
    font-size: 0.98rem;
  }

  .auth-btn {
    padding: 0.92rem 1.1rem;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .auth-card--registro {
    width: min(100%, 26rem);
  }

  .auth-form--registro {
    display: block;
    width: 100%;
  }

  .auth-form--registro .auth-field--full,
  .auth-form--registro .auth-btn,
  .auth-form--registro .auth-msg-error {
    grid-column: unset;
  }

  .auth-card--registro .auth-benefits--registro {
    gap: 0.35rem;
    margin-bottom: 0.85rem;
  }

  .auth-card--registro .auth-benefits--registro li {
    padding: 0.35rem 0.3rem;
    font-size: 0.62rem;
  }

  .auth-card--admin,
  .auth-card--pos,
  .auth-card--cliente {
    width: min(100%, clamp(22rem, 42vw, 32rem));
    margin-inline: auto;
  }

  .auth-footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
  }

  .auth-footer-nav__hint {
    flex: 0 0 100%;
  }

  .auth-footer-nav__link {
    flex: 1 1 auto;
    min-width: 10rem;
    max-width: 16rem;
  }
}

@media (min-width: 1024px) {
  .auth-card {
    width: min(100%, 36rem);
  }

  .auth-card--registro {
    width: min(100%, 26rem);
  }

  .auth-card--admin,
  .auth-card--pos,
  .auth-card--cliente {
    width: min(100%, 32rem);
    margin-inline: auto;
  }

  .auth-logo-wrap img {
    max-width: min(280px, 60vw);
  }

  .auth-card--registro .auth-logo-wrap img {
    max-width: min(168px, 50vw);
  }
}

@media (min-width: 1280px) {
  .auth-panel-body:not(.auth-panel-body--admin):not(.auth-panel-body--pos):not(.auth-panel-body--cliente),
  .customer-auth-page:not(.customer-auth-page--center) {
    padding: 2.5rem 3rem;
  }

  .auth-panel-body--admin,
  .auth-panel-body--pos,
  .auth-panel-body--cliente {
    padding: clamp(2rem, 5vh, 3rem) clamp(2rem, 6vw, 4rem);
  }

  .auth-card--registro {
    width: min(100%, 26rem);
  }
}

@media (max-height: 720px) and (max-width: 767px) {
  .auth-panel-body,
  .customer-auth-page:not(.customer-auth-page--center) {
    align-items: center;
    justify-content: flex-start;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: 1rem;
  }

  body.customer-page-auth .customer-auth-page:not(.customer-auth-page--center) {
    padding-top: max(0.65rem, env(safe-area-inset-top));
  }

  body.customer-page-auth .customer-auth-page--center {
    min-height: 100dvh !important;
    place-items: center;
    padding:
      max(0.65rem, env(safe-area-inset-top))
      clamp(0.85rem, 3vw, 1.25rem)
      max(0.65rem, env(safe-area-inset-bottom)) !important;
  }

  .auth-card--registro {
    margin: 0 auto;
  }

  .auth-card--registro .auth-field {
    margin-bottom: 0.72rem;
  }
}

