/* =============================================================
   AUTH — Login global y modal PIN
   ============================================================= */

/* ----- Login Global ----- */
.global-pin-login {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.global-pin-login__div-1 {
  background: white;
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  margin: 20px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.global-pin-login__div-2 {
  text-align: center;
  margin-bottom: 28px;
}
.global-pin-login__div-3 {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg,#4f46e5,#6366f1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 24px;
  margin: 0 auto 12px;
}
.global-pin-login__div-4 {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
}
.global-pin-login__div-5 {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}
.global-pin-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 24px;
  text-align: center;
  letter-spacing: 6px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.global-pin-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg,#4f46e5,#6366f1);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
}
.global-pin-error {
  font-size: 12px;
  color: #ef4444;
  text-align: center;
  margin-top: 12px;
  min-height: 16px;
}

/* ----- Modal PIN ----- */
.modal-pin {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10002;
  align-items: center;
  justify-content: center;
}
.modal-pin__div-1 {
  background: white;
  width: 280px;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  text-align: center;
}
.pin-user-icon {
  font-size: 40px;
  margin-bottom: 10px;
}
.pin-user-name {
  margin: 0;
  color: #1e293b;
  font-size: 18px;
}
.pin-user-rank {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: -15px;
  margin-bottom: 20px;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}
.pin-dots__div-1 {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  transition: all 0.2s;
}
.dot {
  width: 15px; 
  height: 15px; 
  border-radius: 50%; 
  border: 2px solid #cbd5e1;
  transition: all 0.2s;
}
.modal-pin__div-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.press-pin {
  height: 55px;
  border-radius: 15px;
  border: none;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}
.clear-pin {
  height: 55px;
  border-radius: 15px;
  border: none;
  background: #fee2e2;
  color: #ef4444;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}
.close-pin-modal {
  height: 55px;
  border-radius: 15px;
  border: none;
  background: #e2e8f0;
  color: #64748b;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}
.pin-btn:active {
  transform: scale(0.9);
  background: #cbd5e1 !important;
}
.shake-error {
  animation: shake 0.3s ease-in-out;
  border: 2px solid #ff3b30 !important;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-8px); }
}