/* =========================
   ACCESO (Login / Registro)
   ========================= */

.vp-access {
  background: #111;

  border-radius: 28px;

  padding: 32px 24px;

  width: min(100%, 520px);

  margin: 40px auto;

  box-shadow:
    0 10px 40px rgba(0,0,0,.45);
}

.vp-reset-view h3 {
  color: #ffffff !important;
}
/* =========================================
   AUTH DRAWER TABS
========================================= */

.vp-auth-tabs{
  display:flex;

  gap:10px;

  margin-bottom:26px;
}

.vp-auth-tab-btn{
  flex:1;

  min-height:56px;

  display:flex;
  align-items:center;
  justify-content:center;

  text-align:center;

  padding:10px 14px;

  border:none;
  border-radius:999px;

  background:
    rgba(255,255,255,.08);

  color:
    rgba(255,255,255,.72);

  font-size:14px;
  font-weight:700;
  line-height:1.15;

  cursor:pointer;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.vp-auth-tab-btn:hover{
  transform:translateY(-1px);
}

.vp-auth-tab-btn.active{
  background:#fff;
  color:#111;
}

.vp-auth-tab-content{
  display:none;
}

.vp-auth-tab-content.active{
  display:block;
}

/* Título */
.vp-access h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
}



/* Formularios */
.vp-access form p {
  margin-bottom: 16px;
}

.vp-access label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  opacity: .85;
}

.vp-access input[type="text"],
.vp-access input[type="email"],
.vp-access input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 0.95rem;
}

.vp-access small {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  opacity: .75;
  color: rgba(255, 255, 255, .82);
}

/* Botón principal */
.vp-access input[type="submit"] {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.vp-access input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34,197,94,.45);
}





/* Grupo username con @ dentro del input */
.vp-access .vp-register-form span[style*="inline-flex"] {
  width: 100%;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

/* Bloque del @ */
.vp-access .vp-register-form span[style*="inline-flex"] > span {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #555;
  font-weight: 700;
  border-right: 1px solid #d1d5db;
}


/* Input del username */
.vp-access .vp-register-form span[style*="inline-flex"] input {
  flex: 1;
  height: 44px;
  border: none;
  padding: 0 12px;
  font-size: 0.95rem;
  background: transparent;
  outline: none;
}

.vp-access label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  opacity: .9;
  color: rgba(255, 255, 255, .82);
}

.vp-access form p {
  margin-bottom: 12px;
}

/* ===== Username con @ REALMENTE integrado ===== */

.vp-access .vp-register-form span[style*="inline-flex"] {
  position: relative;
  width: 100%;
}

/* Ocultamos el span del @ real */
.vp-access .vp-register-form span[style*="inline-flex"] > span {
  display: none;
}

/* Input como campo único */
.vp-access .vp-register-form span[style*="inline-flex"] input {
  width: 100%;
  height: 44px;
  padding-left: 42px; /* espacio para el @ */
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  background: #fff;
  outline: none;
}

/* @ dibujado dentro del input */
.vp-access .vp-register-form span[style*="inline-flex"]::before {
  content: "@";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #555;
  font-weight: 700;
  border-radius: 10px 0 0 10px;
  pointer-events: none;
}







.vp-username-status {
  position: static;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 8px;

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;

  line-height: 1;

  max-width: 100%;

  white-space: nowrap;
}

.vp-email-status {
  position: static;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 8px;

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;

  line-height: 1;

  width: fit-content;
  max-width: 100%;

  white-space: nowrap;

  float: none !important;
  transform: none !important;
}

.vp-email-status.ok {
  background: #22c55e;
  color: #fff;
}

.vp-email-status.error {
  background: #ef4444;
  color: #fff;
}

.vp-email-status.idle {
  background: transparent;
  color: #9ca3af;
}


/* ===== Username field ===== */
.vp-username-field {
  position: relative;
}

/* Contenedor del input con @ */
.vp-username-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 0 14px;
  position: relative;
}

/* Prefijo @ */
.vp-username-prefix {
  color: #666;
  font-weight: 700;
  margin-right: 8px;
  user-select: none;
}

/* Input */
.vp-username-wrap input {
  border: none;
  outline: none;
  flex: 1;
  background: transparent;
  padding: 12px 90px 12px 0; /* espacio para el badge */
  font-size: 14px;
}






/* Hint debajo (cuando escriben @) */
.vp-username-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #ef4444;
}


/* ===== Estado verificando ===== */
.vp-status-checking {
  background: #e5e7eb;
  color: #374151;
  animation: vp-pulse 1.2s ease-in-out infinite;
}

@keyframes vp-pulse {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.6; }
}





/* Botón base */
.vp-register-form input[type="submit"] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.25s ease;
}

/* Inactivo */
.vp-register-form input[type="submit"]:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Activo */
.vp-register-form input[type="submit"].is-active {
  background: #22c55e;
  color: #fff;
  cursor: pointer;
}

/* Hover activo */
.vp-register-form input[type="submit"].is-active:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Verificando */
.vp-register-form input[type="submit"].is-checking {
  background: #9ca3af;
  color: #fff;
  cursor: progress;
}





/* ⏳ Verificando */
.vp-username-status.checking {
  
  
  background: #e5e7eb;
  color: #fff;

  position: static !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 8px;

  float: none !important;
  transform: none !important;
}

/* ✅ Disponible */
.vp-username-status.ok {
  
  
  background: #22c55e;
  color: #fff;

  position: static !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 8px;

  float: none !important;
  transform: none !important;
}

/* ❌ Error */
.vp-username-status.error {
  background: #ef4444;
  color: #fff;

  position: static !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 8px;

  float: none !important;
  transform: none !important;
}

/* 🟡 Idle */
.vp-username-status.idle {
  background: transparent;
  color: #9ca3af;
}


/* Estado verificando */
.vp-username-status.checking,
.vp-email-status.checking {
  background: #6b7280;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

/* Puntitos animados */
.vp-status-dots::after {
  content: '';
  width: 1em;
  text-align: left;
  animation: vp-dots 1.4s steps(4, end) infinite;
}

@keyframes vp-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}



.vp-tag{
  box-shadow:0 1px 2px rgba(0,0,0,0.06);
}

/* =========================
   PASSWORD LOGIN FIX (PRO)
========================= */







/* ❌ quitar hover azul del tema */
.vp-toggle-pass-login:hover,
.vp-toggle-pass-login:focus,
.vp-toggle-pass-login:active {
  background: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
}

/* =========================
   RECOVERY UI
========================= */

.vp-forgot-pass a,
.vp-back-to-login,
.vp-recovery-message,
.vp-recovery-message span {
  color: #fff !important;
}

.vp-forgot-pass a:hover,
.vp-forgot-pass a:focus,
.vp-back-to-login:hover,
.vp-back-to-login:focus {
  color: #fff !important;
  text-decoration: underline;
}

.vp-recovery-view h3 {
  margin-bottom: 10px;
  color: #fff;
}

.vp-recovery-input {
  width: 100%;
}

.vp-send-recovery {
  width: 100%;
  background: #22c55e;
  border: none;
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
}

.vp-back-login {
  margin-bottom: 10px;
}

.vp-recovery-message {
  margin-top: 10px;
  font-size: 13px;
}

.vp-loading {
  opacity: 0.7;
}

.vp-reset-view input {
  width: 100%;
}

.vp-save-password{
  width:100%;
  border:none !important;
  box-shadow:none !important;
}

.vp-save-password:not(.is-active){
  background:#e5e7eb;
  color:#9ca3af;
  cursor:not-allowed;
  opacity:.8;
  pointer-events:none;
  border:none !important;
  box-shadow:none !important;
}

.vp-save-password.is-active{
  background:#22c55e;
  color:#ffffff;
  cursor:pointer;
  opacity:1;
  pointer-events:auto;
  border:none !important;
  box-shadow:none !important;
}

.vp-save-password:focus,
.vp-save-password:focus-visible{
  outline:none !important;
  border:none !important;
  box-shadow:none !important;
}