/* Ruitoke Pip Login — formulario de Mi cuenta con Pip. Colores de Ruitoke: azul #00163b, naranja #ff540a. */
.rpip {
  --rp-ink: #00163b;
  --rp-accent: #ff540a;
  --rp-muted: #7c8596;
  --rp-fill: #f2f4f8;
  --rp-rim: rgba(0, 22, 59, 0.1);
  --rp-error: #d93f44;
  position: relative;
  max-width: 560px;
  margin: 8px auto 40px;
  padding-top: 138px;
  font-family: "Lexend Deca", sans-serif;
  color: var(--rp-ink);
}
.rpip *, .rpip *::before, .rpip *::after { box-sizing: border-box; }
.rpip [hidden] { display: none !important; }

/* ---------- la tarjeta ---------- */
.rpip-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--rp-rim);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 24px 60px -30px rgba(0, 22, 59, 0.35);
}
.rpip-logo { display: block; height: 36px; width: auto; margin: -6px 0 10px; }
.rpip .rpip-title {
  font-family: "Lexend Deca", sans-serif;
  font-size: 36px;
  font-weight: 500 !important;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 22px;
  color: var(--rp-ink);
  text-transform: none;
}
.rpip-form { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.rpip-field {
  position: relative;
  display: flex !important;
  align-items: center;
  height: 56px;
  margin: 0 0 12px !important;
  padding: 0 22px;
  border-radius: 28px;
  background: var(--rp-fill);
  border: 1px solid var(--rp-rim);
  cursor: text;
  transition: background 0.2s, border-color 0.2s;
}
.rpip-field:focus-within { background: #fff; border-color: var(--rp-ink); }
.rpip-field.rpip-bad { background: #fff0ef; border-color: #e5484d; }
.rpip-bad .rpip-input { padding-right: 130px !important; }
.rpip-label { flex: none; width: 96px; font-size: 14px; color: var(--rp-muted); font-weight: 400; }
.rpip .rpip-input {
  flex: 1;
  min-width: 0;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font: 400 17px "Lexend Deca", sans-serif !important;
  color: var(--rp-ink) !important;
}
.rpip .rpip-input::placeholder { color: #a5acb9; }
.rpip .rpip-field-pass .rpip-input { letter-spacing: 3px; }
.rpip-error {
  position: absolute;
  right: 22px;
  font-size: 14px;
  color: var(--rp-error);
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
  transition: opacity 0.25s, transform 0.25s, filter 0.25s;
  pointer-events: none;
}
.rpip-bad .rpip-error { opacity: 1; transform: none; filter: none; }
.rpip-shake { animation: rpip-shake 0.6s; }
@keyframes rpip-shake {
  15% { transform: translateX(-7px); }
  30% { transform: translateX(6px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  75% { transform: translateX(-1px); }
}

.rpip .rpip-button {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: var(--rp-ink) !important;
  color: #fff !important;
  font: 500 17px "Lexend Deca", sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.rpip .rpip-button:hover, .rpip .rpip-button:focus-visible { background: var(--rp-accent) !important; }
.rpip .rpip-button:active { transform: scale(0.97); }
.rpip .rpip-button:focus-visible { outline: 3px solid var(--rp-ink); outline-offset: 3px; }
.rpip-bl { position: absolute; display: flex; align-items: center; gap: 10px; white-space: nowrap; transition: opacity 0.25s, transform 0.25s, filter 0.25s; }
.rpip-bl-2 { opacity: 0; transform: translateY(22px); filter: blur(6px); }
.rpip-busy .rpip-bl-1 { opacity: 0; transform: translateY(-22px); filter: blur(6px); }
.rpip-busy .rpip-bl-2 { opacity: 1; transform: none; filter: none; }
.rpip-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff;
  animation: rpip-spin 0.5s linear infinite;
}
@keyframes rpip-spin { to { transform: rotate(360deg); } }

.rpip-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 18px; font-size: 14px; }
.rpip-remember { display: inline-flex !important; align-items: center; gap: 8px; color: var(--rp-muted); cursor: pointer; margin: 0 !important; }
.rpip-remember input { width: 18px; height: 18px; accent-color: var(--rp-accent); margin: 0 !important; }
.rpip-link, .rpip-new a { color: var(--rp-ink) !important; font-weight: 500; text-decoration: none; }
.rpip-link:hover, .rpip-new a:hover { color: var(--rp-accent) !important; }
.rpip-new { margin: 14px 0 0 !important; font-size: 14px; color: var(--rp-muted); }
.rpip-note { font-size: 14px; color: var(--rp-muted); margin: 0 0 12px !important; }

/* ---------- Pip ---------- */
.rpip-box { position: absolute; top: 0; right: 56px; width: 200px; height: 190px; pointer-events: none; }
.rpip-pipbox { z-index: 1; }
.rpip-handbox { z-index: 5; }
.rpip-pip { position: absolute; inset: 0; transform-origin: 100px 190px; }
.rpip-antenna { position: absolute; left: 96px; top: -32px; width: 8px; height: 38px; transform-origin: 4px 38px; }
.rpip-stem { position: absolute; left: 2px; top: 6px; width: 4px; height: 34px; border-radius: 2px; background: linear-gradient(90deg, #c9c5bc, #e4e1da 50%, #bdb8ae); }
.rpip-ball, .rpip-glow { position: absolute; left: -7px; top: -10px; width: 22px; height: 22px; border-radius: 50%; }
.rpip-ball { background: radial-gradient(circle at 34% 30%, #fff 0 18%, #eeebe5 46%, #c8c3b9 100%); }
.rpip-glow { background: radial-gradient(circle at 36% 32%, #f2fff9 0 16%, #8ff0c2 52%, #3fbf86 100%); opacity: 0; }
.rpip-halo { position: absolute; left: -23px; top: -26px; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 240, 194, 0.55), rgba(143, 240, 194, 0) 70%); opacity: 0; }
.rpip-ear { position: absolute; top: 54px; width: 22px; height: 60px; border-radius: 11px; background: linear-gradient(90deg, #cfcbc2 0%, #ebe8e2 55%, #f6f4f0 100%); }
.rpip-ear-l { left: -12px; }
.rpip-ear-r { right: -12px; transform: scaleX(-1); }
.rpip-slot, .rpip-earlight { position: absolute; left: 6px; top: 24px; width: 6px; height: 12px; border-radius: 3px; background: #bfbab0; }
.rpip-earlight { background: #8ff0c2; opacity: 0; }
.rpip-head {
  position: absolute; left: 0; top: 0; width: 200px; height: 172px; border-radius: 74px;
  background: radial-gradient(140% 120% at 30% 16%, #fff 0%, #f4f2ee 36%, #e2dfd8 78%, #d3cfc6 100%);
  box-shadow: inset -12px -16px 28px rgba(70, 60, 40, 0.12), inset 10px 12px 20px rgba(255, 255, 255, 0.95), inset 0 -2px 0 rgba(0, 0, 0, 0.04);
}
.rpip-spec { position: absolute; left: 30px; top: 10px; width: 84px; height: 22px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%); filter: blur(2px); }
.rpip-bezel { position: absolute; left: 14px; top: 16px; width: 172px; height: 132px; border-radius: 56px; background: linear-gradient(160deg, #2a2b2e, #111214 60%, #1c1d20); }
.rpip-screen { position: absolute; left: 18px; top: 20px; width: 164px; height: 124px; border-radius: 52px; background: radial-gradient(120% 120% at 50% 40%, #121316 0%, #0a0a0b 70%); overflow: hidden; }
.rpip-led, .rpip-ledglow { position: absolute; left: 0; top: 0; width: 164px; height: 124px; }
.rpip-ledglow { filter: blur(4px); opacity: 0.75; }
.rpip-glass { position: absolute; inset: 0; border-radius: 52px; background: radial-gradient(120% 80% at 30% -10%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%), linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 30%); }
.rpip-arc { position: absolute; left: 22px; top: 8px; width: 96px; height: 30px; border-radius: 50%; border-top: 2px solid rgba(255, 255, 255, 0.18); transform: rotate(-8deg); }
.rpip-hand { position: absolute; left: 0; top: 0; width: 48px; height: 32px; transition: transform 0.35s cubic-bezier(0.3, 1.2, 0.4, 1); }
.rpip-palm { position: absolute; inset: 0; border-radius: 16px; background: radial-gradient(130% 130% at 30% 18%, #fff 0%, #f0eee9 45%, #d8d4cb 100%); box-shadow: inset -3px -5px 9px rgba(70, 60, 40, 0.13), inset 3px 3px 6px rgba(255, 255, 255, 0.9); }
.rpip-finger { position: absolute; top: 4px; width: 1.5px; height: 10px; border-radius: 1px; background: rgba(0, 0, 0, 0.1); }

@media (max-width: 520px) {
  .rpip { padding-top: 104px; }
  .rpip-box { right: 28px; transform: scale(0.76); transform-origin: 100px 138px; top: -34px; }
  .rpip-card { padding: 26px 20px; border-radius: 24px; }
  .rpip .rpip-title { font-size: 30px; }
  .rpip-field { padding: 0 18px; }
  .rpip-label { width: 84px; font-size: 13px; }
  .rpip .rpip-input { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rpip-hand, .rpip-bl, .rpip-error { transition: none; }
  .rpip-shake { animation: none; }
}

/* WooCommerce: contenedor y botón para mostrar la contraseña */
.rpip .password-input { flex: 1; display: flex !important; align-items: center; height: 100%; min-width: 0; position: static; }
.rpip .show-password-input {
  position: static !important; flex: none; width: 36px !important; height: 36px !important; margin: 0 -8px 0 4px !important; padding: 0 !important;
  border: 0 !important; box-shadow: none !important; border-radius: 50% !important; cursor: pointer; opacity: 0.55;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300163b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px no-repeat !important;
}
.rpip .show-password-input::before, .rpip .show-password-input::after { display: none !important; }
.rpip .show-password-input:hover, .rpip .show-password-input.display-password { opacity: 1; }

/* ---------- panel lateral del menú (WoodMart) ---------- */
.rpip-panel .wd-heading .title { visibility: hidden; }
.rpip-panel .wd-heading { border: 0 !important; }
.rpip.rpip-side { margin: 0 auto 20px; padding-top: 104px; max-width: 100%; }
.rpip-side .rpip-box { right: 22px; top: -34px; transform: scale(0.76); transform-origin: 100px 138px; }
.rpip-side .rpip-card { padding: 24px 20px; border-radius: 22px; }
.rpip-side .rpip-logo { height: 30px; }
.rpip.rpip-side .rpip-title { font-size: 28px; margin-bottom: 18px; }
.rpip-side .rpip-field { padding: 0 16px; height: 52px; }
.rpip-side .rpip-label { width: 82px; font-size: 13px; }
.rpip-side .rpip .rpip-input, .rpip-side .rpip-input { font-size: 16px !important; }
.rpip-side .rpip-error { right: 18px; top: 100%; margin-top: 3px; font-size: 12px; }
.rpip-side .rpip-bad .rpip-input { padding-right: 0 !important; }
.rpip-side .rpip-field.rpip-bad { margin-bottom: 26px !important; }
.rpip-side .rpip-button { height: 52px !important; }
.rpip-side .login-form-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin: 16px 0 0 !important; font-size: 13px; }
.rpip-side .login-form-footer a { color: var(--rp-ink) !important; font-weight: 500; text-decoration: none; }
.rpip-side .login-form-footer label { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; color: var(--rp-muted); }
.rpip-side .login-form-footer input[type=checkbox] { accent-color: var(--rp-accent); width: 17px; height: 17px; margin: 0 !important; }
.rpip-side .rpip-new { text-align: center; }
.rpip-side .rpip-new .btn, .rpip-side .rpip-new a { display: inline !important; padding: 0 !important; background: none !important; border: 0 !important; color: var(--rp-ink) !important; font-weight: 500 !important; text-transform: none !important; font-size: 14px !important; min-height: 0 !important; box-shadow: none !important; }
.rpip-side .create-account-question p { display: inline; margin: 0 4px 0 0; }
